Ask onclick method

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
patilpallavi
New php-forum User
New php-forum User
Posts: 7
Joined: Wed Jul 04, 2012 11:26 pm

Re: Ask onclick method

Post by patilpallavi » Wed Jul 11, 2012 5:00 am

Hi,
Try this one

<input type=text name=kata id=kata class=txt-search >

$('#kata').focus(function(){
var strCurretnSearchString = $(this).val();
if(strCurretnSearchString == "Quick Search");
$(this).val('');
}).blur(function(){
var strCurretnSearchString = $(this).val();
if(strCurretnSearchString == "")
$(this).val('Quick Search');
});

hdmi cables, hdmi Adapters, hdmi Extenders, hdmi Switches

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest