Hi Guest

MobileUser

1 HomePage 1 Jobs 1 WalkIn 1Articles  

Cat Exam

 :) Latest Topic
AJAX
VB.NET
SQL Query
UDDI
CLASS
JavaScript Questions
SharePoint Interview
SilverLight
WCF
general knowledge
 ASP.NET
 :) Hot Jobs
 
 :) Latest Articles


  

 


Example of JQuery focus event on textbox
Question Posted on 17 Jan 2012

Home >> WEB >> JQuery >> Example of JQuery focus event on textbox




Below is the example for JQuery to change colour of textbox on foucs on it.First we take a html control and do jquery on it.

< input id="Inputtxt" type="text" />

JQuery script for changing background color on receiving focus

< script language="javascript" type="text/javascript">
$(document).ready(function () {

$("#txtInput1").focus(
function (event) {
$("#Inputtxt").css("background-color", "Yellow");
}
);
});
0
0



 
 Input Your Comments Or suggestions(If Any)
 Name
 Email(optional)
 Comments


Other Important Questions
Difference between body.onload and document.ready in jQuery
Different method which provides effects in JQuery
Three types of selector in JQuery
Example of JQuery focus event on textbox
What is significance of jQuery.NoConflict






 
Top Searches:asp net questions vb net questions sql query uddl questions class javascript Questions sharepoint interview questions and concept silverlight questions and concept wcf questions beans general knowledge ajax questions
PHP | Biztalk | Testing | SAP | HR |