Ask onclick method

General discussions related to php

Moderators: egami, macek, gesf

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

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests