how to get input type=hidden value in javascript

The first method uses document.getElementById ('textboxId').value to get the value of the box: This is actually one of the common attributes, but it has a special meaning available for hidden inputs. $('#foo') or $('input:hidden#foo') ? Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide. A function is called with the value of this attribute. Normally, the name attribute functions on hidden inputs just like on any other input.