Skip to content
Snippets Groups Projects
Commit a343c7f4 authored by Seth Meranda's avatar Seth Meranda
Browse files

added jQuery functions for the search box label.

parent 1146cf37
Branches
No related tags found
No related merge requests found
WDN.jQuery(document).ready(function() {
WDN.jQuery('form#searchform label').css({display: "block");
WDN.jQuery('form#searchform label').css({display: "block"});
WDN.jQuery('form#searchform input#search_input').focus(function(){
if (WDN.jQuery('#wdn_search_form input#search_input').val() != "") {
WDN.jQuery(this).siblings("label").hide();
WDN.jQuery(this).siblings("label").hide();
});
WDN.jQuery('form#searchform input#search_input').blur(function(){
if (WDN.jQuery('form#searchform input#search_input').val() == "") {
WDN.jQuery(this).siblings("label").show();
};
})
}
})
\ No newline at end of file
});
});
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment