There are several ways to get to work out if a checkbox is checked or not with jQuery, and here a couple of alternatives. Conclusion: That's it we just need to change the element ID respectively and with the .val () method we get the value of our input hidden field. $('#checkbox_id').is(":checked"); 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. To get the value of the Value attribute you can do something like this: $("input[type='checkbox']").val(); get data from json placeholder. Those 2 ways are working: $('#checkbox').prop('checked') $('#checkbox').is(':checked') (thanks @mgsloan ) $('#test').click(function() { }); Can be either a valid identifier or a quoted string. run a function on all key events. Check the example below to see a jQuery input value assigned to a text field upon clicking a button: Note: when the collection is empty, jQuery input value is returned as undefined. It returns undefined for the value of a property that has not been set, or if the matched set has no elements. if ( $( elem ).is( ":checked js input value keypress. var n = jQuery(".checkboxClass:checked").length; javascript text input value function. change place holder of input on button click jquery. get value from input and append it body on key press. Also, if you use the change event here it will not work as expected, since in case of text inputs the change event fires only when the element loses focus (i.e. jQuery val() method is used to get the value of an element. Check box. To make jQuery get input value, you don't need to define any arguments: Solution 3: get placeholder innerhtml. keypress input jquery.