Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

use jquery variable in html

<script>
   $(document).ready(function(){
      var inputvalue = "field 1";
      $('#id1').val(inputvalue);
   });
</script>

<html>
<body>
<div><input id="id1" value=""></div>
</body>
</html>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #jquery #variable #html
ADD COMMENT
Topic
Name
7+2 =