to display hidden element when WebJavaScript Input Type Checkbox defines a checkbox. Did any DOS compatibility layers exist for any UNIX-like systems before DOS started to become outmoded? How to react to a students panic attack in an oral exam? A hidden field also includes those data that could not be seen or modified by the users when submitted the form. Thank you so much for your help and everyone else's! Your email address will not be published. To get value, use: $.each($('input'),function(i,val){ if($(this).attr("type")=="hidden"){ var valueOfHidFiled=$(this).val(); alert(valueOfHidFiled); } }); or: var valueOfHidFiled=$('input[type=hidden]').val(); alert(valueOfHidFiled); To set value, use: $('input[type=hidden]').attr('value',newValue); Is a PhD visitor considered as a visiting scholar? How do I include a JavaScript file in another JavaScript file? But then I will have to call that function which i don't want . Example 1: The following example uses the inbuilt bind () method of jQuery. document.getElementById( "hidElem" ).value; for a hidden input element like otherwise you can use textContent property. Is it suspicious or odd to stand by the gate of a GA airport watching the planes? How to get How can I validate an email address in JavaScript? You have to wrap in the input in a