Get the value of a hidden field in jQuery

QuestionsGet the value of a hidden field in jQuery
sethbeckerman5 Staff asked 10 years ago

I have a simple JQuery code where I'm trying to get the value of an ASP:HiddenField and display it, but it does not show anything.

The hidden field is in the form, not inside any table or div.

I am setting the value of hidden field on page load and then when I click the button I want to display the value using alert. It shows an empty alert box every time.

What am I doing wrong?


View on Stack Overflow