pass text from input field to javascript function

93

pass text from input field to javascript function -

<input name="textbox1" id="textbox1" type="text" />
<button type="submit" onclick="javascript:myfunction(document.getElementById('textbox1').value)" >Submit</button>

Comments

Submit
0 Comments