Got the next html code:
<form name="frm">
<textarea class="textarea" name="textarea" id="textarea">
<?php
foreach ($textarea as $textareashow){
echo $textareashow."\r\n";
}?>
</textarea><br><br>
<input type="button" name="callbutton" value="Push button" id="execbutton" />
</form>
And the next JavaScript code:
$(document).ready(function () {
$('#callbutton').click(function () {
alert("HELLO!!!");
});
});
What I want is to call the JavaScript function from his button input name. Is it possible? and from his input id? Thank you very much.