Hi, > How can I change this to my code runs faster?
I don't think, that you should change jQuery here. As much as I understand it, that function is called whenever you use a more complex expression than just an ID, a tag name or a classname. 1. Try to give your input-Elements IDs and use $("#myid").filter("[EMAIL PROTECTED]") instead of "[EMAIL PROTECTED]'patrimoniais__pat_co_veiculos'[EMAIL PROTECTED]". Then jQuery can use document.getElementByID() to get the Element and checks for the condition in the filter. I am not shure if jQuery will do the same for $("[EMAIL PROTECTED]"). You could profile to see if there is a difference. 2. Use chaining and try to cache jQuery results: ---- $('#dadosAuxiliares').tabs( {fxShow: {height: 'show', opacity: 'show'}, tabStruct:'.fragment'}); $('#dadosAuxiliares').triggerTab(0); ---- can be ---- $('#dadosAuxiliares').tabs( { fxShow: {height: 'show', opacity: 'show'}, tabStruct:'.fragment'} ).triggerTab(0); ---- Then the query for '#dadosAuxiliares' onlyneeds to be executed once. ---- $("[EMAIL PROTECTED]'familiares__pes_ds_dependente_possui']").click(function(){ // apresenta um highlight na linha clicada $('.show_familiares__pes_ds_dependente_possui').highlightFade({color:'yellow',speed:1500,iterator:'sinusoidal'}); if ($("[EMAIL PROTECTED]'familiares__pes_ds_dependente_possui'[EMAIL PROTECTED]").val() == "1"){ $(".show_familiares__pes_ds_dependente_possui").show(); } else{ $(".show_familiares__pes_ds_dependente_possui").hide(); } }); ---- can be ---- var p = $("[EMAIL PROTECTED]'familiares__pes_ds_dependente_possui']"); var shp = $('.show_familiares__pes_ds_dependente_possui'); p.click(function{ shp.highlightFade({color:'yellow',speed:1500,iterator:'sinusoidal'}); if( p.filter('[EMAIL PROTECTED]').val == 1 ) shp.show(); else shp.hide(); p.end(); // remove the filter result }); ---- Then p and shp are only queried once during the whole life of the script. Christof