Hi all,
In my application , when i click on any text box , i want to change the backgroundcolor.when i click another text box i want to change
the background color of later to another.
i tried using addclass and removeclass using jquery
$(':text').click(function(){
$(this).addClass("highlight");
},
function() {
$(this).removeClass("highlight");
});
});
<style type="text/css">
.highlight
{
background-color:#9999FF;
}
</style>
it is working on first time.
when i press second textbox ,first text box's background color is not changing
how to solve this
Regards
Baiju