Side navigation
Ticket #5537: test2.php
File test2.php, 0.5 KB (added by alwaysbrasilian, November 20, 2009 01:50AM UTC)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script src="jquery.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
$(function() {
set();
function set(){
$("#answer").click(function(){
var answ = $(this).val();
console.log(answ);
});
}
});
//-->
</script>
</head>
<body>
<input type="button" id="answer" value="1" />
</body>
</html>
Download in other formats:
Original Format
File test2.php, 0.5 KB (added by alwaysbrasilian, November 20, 2009 01:50AM UTC)
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<script src="jquery.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
$(function() {
set();
function set(){
$("#answer").click(function(){
var answ = $(this).val();
console.log(answ);
});
}
});
//-->
</script>
</head>
<body>
<input type="button" id="answer" value="1" />
</body>
</html>