Thanks for that karl, that works, however I was kind of hoping for
something a little cleaner as I know have two seperate onblur
functions for the same field (as theres a more general one also i.e. I
have (edited for brevity):


$(".M12_editBookmarks fieldset input").focus(function()
                                                                                
{
                                                                                
        if (this.className == "toolTipOnLoad"){
                                                                                
        this.removeClass("toolTipOnLoad");
                                                                                
        }
                                                                                
        else{
                                                                                
        $(".M12_editBookmarks .toolTipOnLoad").hide(10);
                                                                                
        $(".helpText",$(this).parents().eq(0)).fadeIn(500);
                                                                                
        }

                                                                                
}).blur(function()
                                                                                
                {
                                                                                
                $(".helpText",$(this).parents().eq(0)).hide(10)
                                                                                
                                                                }
                                                                                
})

$(".M12_editBookmarks fieldset input[id$=url]").blur(function() {
   // do something
   alert("its this field")
});

Do you know a way other than the fugly one I had before of wrapping
into the other blur using $(this)?
using  somthing like

if ($("this[id$=url]") != null)
{

}

Reply via email to