Creating a non-Native jQuery event that returns a value (www.coderjournal.com)
submitted by
zigamorph(2925) 1 year, 8 months ago
Today I had the need to create a custom event using jQuery, in order to launch a customized form validation event from a global submit event. I did this so I could focus in on the first form field that had an error. But I needed something more than the standard bind() and trigger() that jQuery offers because I needed the validation event to return true or false based on if the form validated or not. So this is what I came up with...
|
category: AJAX
|
Views: 20
tags:
AJAX another
Everyones tags:
Your Tags: