How do I make this submit on pressing the enter key? I want to completely remove the submit button.
HTML
<form class="iform">
<input id='input1' name='input1'/>
<input type='button' value='GO!' id='submit' onclick='onSubmit()' />
</form>
JS
$('#submit').click(function() {
$('#slider').anythingSlider($("#input1").val());
});
Very simple since you have only one field
EITHER
OR even
JS in either case