www.webdeveloper.com
Results 1 to 2 of 2

Thread: Checkbox list value in javascript

  1. #1
    Join Date
    Mar 2008
    Posts
    27

    Smile Checkbox list value in javascript

    Hi,
    Can anyone please suggest me, how to get the CheckBoxList value in client side using javascript. I need selected value not text.


    Thanks in advance.

    P.Murugesan

  2. #2
    Join Date
    Oct 2003
    Location
    Andover, UK
    Posts
    946
    Don't confuse the checked property with the value. Whilst checkbox fields can have values, this is for the purposes of server-side handlers, and doesn't relate to whether it's checked or not when querying this client side.

    You need:

    Code:
    someElement.checked //is either true or false

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles