I have a form that I just want to test if my input values are getting submitted correctly. I don’t have any serve script setup yet but I thought I might be able to see my values been appended to my url when I click submit.
Here is what I have so far.
<form id="appointments" action="" method="get">
<input type="checkbox" name="check1" value="my value"/>
</form>
I have a div with a graphic on it which is been used for the submit and this is the code I’m using.
submit.click(function(evt){
evt.preventDefault();
$this.submit();
});
this is referring to the form id (id="appointments").
When I submit nothing gets appended to my url. Anyone know why.
your declaration is wrong because normal javascript variable can be started with
$, so$thisis just a local variable, unless you use$this = $(this)so instead of using
$thisuse$(this)orthis.something