I have a field that runs a JQuery script when it is clicked. This is a field in a form.
However, I need the scrip to run if the field is tabbed to, as some users prefer to do.
This is currently my script
Query(function($){
$('span.website input.url').one("click", function() {
$('span.website input.url').val($('span.website input.url').val() + 'http://');})
});
How can I alter this to work the field is tabbed to?
Thanks a ton!
I think you need to bind to
focusinstead ofclickto