Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help needed with onChange()

 
Amber Vaidya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a check box and a multi-select list on a page.
On checking the check box, all the values in the multi-select list should be shown selected.
When the user explicitly selects one/more values in the multi-select list the checkbox should be shown unchecked.
Now, I have an onChange() event on the multi-select list. I am retrieving some values from the DB depending on the selections
made in the list.
Everything works fine if I explicitly select the values in the select list. If I click on the checkbox, the values in the list are
shown selected but the onChange event does not fire.

Following is a sample code of what I am trying to do. Any help will be greatly appreciated.
Thanks in advance

NOTE : OnClick has been changed to onClik for posting

 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Eric
 
Amber Vaidya
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you meant


This seems to work fine.
Thanks a lot
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic