Answers for "use jquery variable in html"

0

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>
Posted by: Guest on April-09-2021

Code answers related to "use jquery variable in html"

Browse Popular Code Answers by Language