I have form in which I have several controls. My concern is that when I filling values in Panel1 , & click on any other control or space outside panel1 .How can I get alert message. I am working in asp.net
-
1Would you mind showing some of the code involved and what you've tried, please.Chase– Chase2012-10-09 15:27:25 +00:00Commented Oct 9, 2012 at 15:27
-
Currently I dont have code on my machine , but I can tell you scenario..Constant Learner– Constant Learner2012-10-09 15:31:08 +00:00Commented Oct 9, 2012 at 15:31
-
@Neurofluxation It would help if any of the questions asked had any responses. Guessing those questions have as much detail as this one. :)epascarello– epascarello2012-10-09 15:31:22 +00:00Commented Oct 9, 2012 at 15:31
-
@ Neurofluxation , epascarello : i dont understand what you are trying to tellConstant Learner– Constant Learner2012-10-09 15:32:09 +00:00Commented Oct 9, 2012 at 15:32
-
If an answer has helped you, please accept it (click the tick)!Barrie Reader– Barrie Reader2012-10-09 15:35:37 +00:00Commented Oct 9, 2012 at 15:35
Add a comment
|
2 Answers
Use focusin and focusout of Jquery.
<div style="border: 1px solid black;padding:10px;">
First name: <input type="text"><br>
Last name: <input type="text">
</div>`
<script>
$(document).ready(function(){
$("div").focusin(function(){
$(this).css("background-color", "#FFFFCC");
});
$("div").focusout(function(){
$(this).css("background-color", "#FFFFFF");
});
});