Microsoft
Software
Hardware
Network
Question : jquery set value of hidden form field
I have a simple form with a hidden form field:
<input type="hidden" name="test" id="test" value="" />
I'm trying to change the value of this field using jquery, but am not having any luck. There are several posts regarding the inability to get or change a hidden field's value, but there must be a way.
Here is the basic code that I'm using within a function:
$("#test").val("1234");
I've also tried:
$("#test").attr("value","1
234");
and
$("input#test:hidden").att
r("value",
"1234");
Answer : jquery set value of hidden form field
This should work.
<script type="text/javascript">
$(do
cument).re
ady(functi
on(){
$("#test").val("1234");
});
</script>
Random Solutions
Updating with Entity Framewokr
Can you create i listserv type enviroment purely with Exchange?
Banner Design - Best Examples
default sa password in SQL Server express
Updating Linux Repo’s for Fedora Core 4
Oracle DBA interview questions for IBM in USA
Access 2010: Is there a way to install the runtime on a PC that already has Access installed?
Enable Ping on Sonicwall 3060
mySQL problem
Flash AS2 loop through array using bracket notation