zhskmooeth
New Member
I have a databound Checkboxlist in asp.NET with DataTextField and DataValueField. Now if i select a single item in that list, i need to have the value of only that item.I found lots of solutions to find the values of all selected items but that is not what i need. The only value i need is the one i justed selected or deselected.Is there a way to get this value with jQuery code? For example in an alert like in the code below.\[code\]$("#checkboxlist").click(function () { alert('value of the item that just got (de)selected'); });\[/code\]Thanks alot!UPDATE:This is the html part:\[code\]<span id="checkboxlist"> <input id="checkboxlist_0" type="checkbox" name="checkboxlist$checkboxlist_0" value="http://stackoverflow.com/questions/13723148/11" /> <label for="checkboxlist_0">Item 1</label><br /> <input id="checkboxlist_1" type="checkbox" name="checkboxlist$checkboxlist_1" value="http://stackoverflow.com/questions/13723148/12" /> <label for="checkboxlist_1">Item 2</label><br /> <input id="checkboxlist_2" type="checkbox" name="checkboxlist$checkboxlist_2" value="http://stackoverflow.com/questions/13723148/13" /> <label for="checkboxlist_2">Item 3</label><br /> <input id="checkboxlist_3" type="checkbox" name="checkboxlist$checkboxlist_3" value="http://stackoverflow.com/questions/13723148/14" /> <label for="checkboxlist_3">Item 4</label><br /></span>\[/code\]