I want to do this
<div id="myform">
<form action="http://www.google.co.in" method="post">
<input type"submit" value="google"/>
</form>
</div>
I want to change the action to someother URL , when a button is clicked. Note that i do not have any id's or name's for this form, i just have the action and method.
Any help on this is appreciated .
I tried the following,
$(document).ready(function()
{
$("#myform form").attr("action","http://www.yahoo.com");
});
Thanks Janani