Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: displaying checkboxes checked


Message #1 by "kostas lagos" <klag@i...> on Wed, 12 Mar 2003 08:06:45
Did you try 
form1.radiobut[0].checked = true;
?

-----Original Message-----
From: kostas lagos [mailto:klag@i...] 
Sent: Wednesday, March 12, 2003 12:07 AM
To: javascript
Subject: [javascript] displaying checkboxes checked

Hello all,

This might be a silly one but it seems i cant work around it

I have a hidden field from which i check its value..
If it equals the value from a checkbox out of a group i want this checkbox 
to appear checked..Thats my idea of achieving that:

if(form1.radiobut[0].value==form1.getCheck.value)	{
		form1.radiobut[0].checked
		}
Im not sure of how you make the checkbox checked

Thanks in advance

Kostas lagos

  Return to Index