| 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");
}
);
});
| | |