Friday, August 11, 2017

Set a value to hidden field using java script and php



<script type="text/javascript"> 
var lvlBtnvalue="<?php echo $lvlBtn?>";
document.getElementById("lvlBtn").value=lvlBtnvalue;
</script>

No comments:

Post a Comment

Featured Post

What is JavaScript? What is the role of JavaScript engine?

  The JavaScript is a Programming language that is used for converting static web pages to interactive and dynamic web pages. A JavaScript e...