I'm trying to alter the code below so that if "this" contains the class "search_init", it will only replace that class, as the markup itself has multiple classes applied to it. I tried ~= and ^=, but that gives me errors about missing ().
$("tfoot input").focus( function () {
if ( this.className == "search_init" ) {
this.className = "";
this.value = "";
}
} );