Two buttons in a form, Both called
- by coffeeaddict
Here's my ASP.NET form. When I click one button it calls both jQuery functions. It's probably a rudimentary HTML question but I'm not sure why:
<form id="form1" runat="server">
<div id="testDialog">
</div>
<p><input type="button" id="invoke1" value="test 1" /></p>
<input type="button" id="invoke2" value="test 2" />
</form>
<script type="text/javascript">
$(function() {
$("input:invoke1").click(function(){
showSomething("testDialog");
});
$("input:invoke2").click(function(){
showSomething2("test.aspx", options);
});
});
</script>