Jquery .click will not work
Can anyone spot my error in trying to get .click to work in the example below?
Thanks for help, R
- THIS Code Works ..
<input type="button" name="next" class="controls-input-connect hov" id="next" value="Next" onclick="nextRecord();" />;
BUT .. This Equivelent Code DOES NOT WORK
<input type="button" name="next" class="controls-input-connect hov" id="next" value="Next"/>
<script type="text/javascript" >
$("#next").click(nextRecord);
OR $("#next").click(nextRecord() );
</script>