I have this code (jQuery).
Basically I want to reload page if there is input with #SchoolName existing but it misses class="ac_input", IF that class is present, do not reload page.
Is this possible?
<input type="text" onfocus="showVal(this.value);" value="" id="SchoolName" size="30" maxlength="50" name="SchoolName" autocomplete="off" class="ac_input">
function autocomplete() {
$("#SchoolName").autocomplete("ajaxFuncs.php",{cacheLength:1,mustMatch:1,extraParams:{getSchoolName:1}});
};
$(document).ready(function(){
setTimeout("autocomplete()", 500);
// what do i have to add here???
});
setTimeout.