December 2013
Intermediate to advanced
384 pages
9h 54m
English
var hiddenValue = $("#hidden").val(); var hiddenValue = $("#hidden").attr("other"); var hiddenValue = $("#hidden").prop("otherProp"); var hiddenValue = $("#hidden").data("storedValue");
A great HTML element to use if you need to supply additional information to the browser from a form is the hidden input. The hidden input is not displayed with the form, but it can contain a name and value pair that is submitted or even just values that you want to store in the form and have accessible during dynamic operations.
The parts to be sent with the form are the name and value attributes. However, you can attach additional values to a hidden form object or any HTML DOM object ...
Read now
Unlock full access