I want to know if there's a way to make this code more efficient please, I am trying to improve my own code but I feel I need feedback, with this part:
$(function(){
$('#buscar').focus(function(){
if(($(this).val() === '') || ($(this).val() === ' ') || ($(this).val() === 'Buscar...'))
$(this).val('');
}).change(function(){
if(($(this).val() === '') || ($(this).val() === ' ') || ($(this).val() === 'Buscar...'))
$(this).css({'color':'#999999'});
else
$(this).css({'color':'#000000'});
}).blur(function(){
if(($(this).val() === '') || ($(this).val() === ' '))
$(this).val('Buscar...');
});
});
=== ' ', what's so special about a single space?