I have created a javascript function like the following:
function highlight_input() {
$("input").css("background", "yellow");
}
$("#input1").highlight_input();
$("#input2").highlight_input();
Now I want to highlight the two input types when need! but both should not be highlighted at a time!