File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to iterate over enumerated Check List (check boxes) using JQuery?

 
James Dekker
Ranch Hand
Posts: 221
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello there, I have the following check list (containing 2 check boxes which have 2 different e-mail addresses in them):



Am able to use a JavaScript event listener to populate / remove from a text field, everytime a user clicks on an individual check box using this:



However, I now have an enumerated check list... Just need to append / concatenate the index number (which I stored in an hidden field and can always obtain the
correct one), but can't seem to see how to pass in the second iterator's "input:checkbox:checked".

Here's the HTML source of the checked list:



JavaScript:



The browser says that ($test).each() throws an exception which is not caught and this is not allowed...

What am I possibly doing wrong?

Many thanks for reading this...
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic