Creating a non-Native jQuery event that returns a value (www.coderjournal.com)

submitted by zigamorphzigamorph(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...

add a comment | category: | Views: 20

tags: another

new Add a live kick counter to your blog >> liveImage

You can even customize the image by choosing your own colors, and then clicking the button below to update the preview and the html code:

  • "Kick It" text
  • "Kick It" background
  • kick count text
  • kick count background
  • border

Simply copy and paste this HTML into your blog post.


Users who kicked this story:

Comments:

No comments so far

information Login or create an account to comment on this story