...

View Full Version : onblur event



nick2price
06-29-2012, 10:09 PM
Hi, instead of placing an onblur event directly on the element in html, I was wondering if it was possible to do something like this?

$(document).ready(function() {

$("#depart").onblur(function(){

...

I cant get this working, but dont even know if its possible.

Thanks

Nile
06-30-2012, 01:56 AM
With jQuery, it's .blur() instead of .onblur().
http://api.jquery.com/blur/

Good luck



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum