How do you convert this Prototype Ajax call to a jQuery implementation that functions the same way?
JS:
<script style="text/javascript">
function checkit() {
var request = new Ajax.Request('/checkit',
{
asynchronous:true,
evalScripts:true,
parameters: $('checkit_form').serialize(true)
});
}
</script>
HTML:
<form id="checkit_form">
<input type="hidden" id="hashedEnumerable" name="hashedEnumerable" value="X101933488ccf103hghs029sskxiiefdhsYs">
</form>
The
returnstatement isn’t needed, but it allows you to say: