Hi,
As you may have guessed, I am new to jquery.
I am having trouble linking a button to a get request (I do not want the page to load, rather hit a URI via api to trigger an event).
I've placed a button in a HTML template as such:
<input type="button" id="button" value="Click me to do stuff" onclick="doStuff()" />
<script language="javascript" type="text/javascript">
$('.button').click(function('doStuff''){
$("#result")
.html(ajax_load)
.load(loadUrl, "http://URLisHere.com");
});
</script>
Would someone mind taking a look and letting me know what I misesd? Your help is very appreciated.
Cheers,
-Brian