[jQuery] change the attribute value, when button is clicked
It is not working... I am not sure what should I do....
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" charset="utf-8">
$(document).ready(function(){
$('#link1').click(function(){
alert('yo');
$('#test_form').attr('action', 'there');
});
});
</script>
</head>
<body>
<form id="test_form" action="here">
<input type="button" name="link" value="button" id="link1"/>
</form>
</body>
</html>