element Any standard HTML tag name like div, p, em, img, li etc. Here in the above jquery code, we select input hidden filed by its type i.e hidden, and then by using jquery .val () we get the hidden field value. The prop() method provides a way to get property values for jQuery 1.6 versions, while the attr() method retrieves the values of attributes. Check box. $('#checkbox_id:checked').val(); getting the value from keyup event. or $("#some_id").attr("checked") || 0; In case of Topic: JavaScript / jQuery Prev|Next. If the user want to see the particular content in the table box, then the user can select the checkbox associated with the column textbox which he wants. attribute-value value of attribute of above element. alert (dev_id); if (jQuery (".dev_id").val () === dev_id) {. There are several ways to get to work out if a checkbox is checked or not with jQuery, and here a couple of alternatives. Those 2 ways are working: $('#checkbox').prop('checked') $('#checkbox').is(':checked') (thanks @mgsloan ) $('#test').click(function() { }); $('input[name=foo]').is(':checked') $('input[name=foo]').attr('checked') Set the checkbox to checked or not checked on keypress check the text fields value jquery. inside the input. The .prop () method gets the property value for only the first element in the matched set. Discuss.