We can select the checked checkbox (in jQuery) as follows:
jQuery(:checked)
But how can we select the label of the checked checkbox in jQuery?
checkbox doesnt come with text ( in asp.net it DOES)
jQuery(":checked").next('span').html() //next or prev ( depends n direction)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With