Reply to topic
Updating a checkbox on the fly
jamie
HostMySite Sales Rep
HostMySite Sales Rep

Joined: 19 Mar 2004
Posts: 771
Location: Newark, De
Reply with quote
Does anyone know how to update a checkbox's status? I.e. I have 4 checkboxes, and the last one is an "all of the above" option, so when clicked I want it to automatically 'check' the other three boxes immediately.
chhchung


Joined: 30 Aug 2004
Posts: 29
Reply with quote
It's related to javascript. I used the similar script before. You can do a google search on this kind of javascript.
byron
Forum Admin

Joined: 07 Mar 2004
Posts: 160
Location: Newark, DE, USA
Reply with quote
In the onclick event, put a JS function call that checks all the other boxes.

Setting the box to checked is easy:

document.frmName.chkBoxName.checked = true;

www.devguru.com, is a decent JS reference that I use.
Updating a checkbox on the fly
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic