[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Button script
On Wed, 31 Jan 1996, George Mitrevski wrote:
> I am trying to create a button, that when clicked it will click on a
> checkbox button. Something like this:
>
> <form >
> <input type="checkbox" name="checkbutton">
> <p>
> <input type="button" value="check" onclick="
> click(this.form.checkbutton)">
>
> </form>
>
> It's not working. Any idea why not?
> ************************************************************************
> **
> Dr. George Mitrevski office: 334-844-6376
George, I do not know if the click method is yet implemented
but you syntax is not right:
document.TheFormName.theCheckboxName.click() similarly
document.form[x].theCheckboxName.click()
would do it. Or,
this.form.checkbutton.click() in your case.
JP
______________________________________________________________
Jon Gorrono (Gorroño) 1400-M Surge II
New Media Programmer/Analyst UC Davis
Creative Communication Services Davis, CA 95616
A Division of Information Technology (916)752-0218;FAX-4655
University of California at Davis jpgorrono@ucdavis.edu
Owner:Digital Video Discussion List DIGVID-L@UCDAVIS.EDU
"Dogs are insecure and neurotic and agitated, and generally in
the throes of some unbecoming emotion,
and I like them." - Adair Lara
______________________________________________________________