<html> |
|
<head> | |
<script type = "text/javascript"> | |
$(document).ready(function () { | |
$("#btnClick").click(function(){ | |
alert("hello"); | |
}); | |
</script> | |
</head> | |
<body> | |
First name:<br> | |
<input type="text" name="firstname" value="Mickey"><br> | |
Last name:<br> | |
<input type="text" name="lastname" value="Mouse"><br><br> | |
<input type="submit" id ="btnClick" value="Submit"> | |
</body> | |
</html> ------------------------------------- $(#btnClick).bind('click'(function(){ |