C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Reviews   Communities   Interview   Jobs   Projects   Training   Your Ad Here    
Silverlight Games | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Polls | Revenue Sharing | Lobby | Gift Shop |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...






Forums » .NET » JavaScript »

OnBlur Problem


Posted Date: 07 Jul 2008      Posted By: Joemon      Member Level: Silver     Points: 1   Responses: 4



In my webpage i have

Two TextBoxes

When the first textbox is blank. then the Onblur is not working.

why it is happening?

How to overcome that?





Responses

Author: surya    07 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 1

could you please send me more details or send me screen shot of ur page


Author: Ebenezer    08 Jul 2008Member Level: SilverRating: 2 out of 52 out of 5     Points: 0

hi

give some more Detail ...

regards



Author: kunal badgujar    08 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

hi..
try following code...

<script type ="text/javascript">
function test()
{
alert ("Hi");
}
</script>

<body>
<form id="form1" runat="server">
<div>
<input onblur ="test();" id ="DSD" tabindex="1" />
<asp:TextBox ID="ss" runat="Server" tabindex="2">
</div>
</form>
</body>



Author: Arun K    15 Jul 2008Member Level: GoldRating: 2 out of 52 out of 5     Points: 4

See this code it is for onblur and onfocus for the HTML TextBox

<input name="Name" type="text" id="Name" class="input-box"
value="name"
onfocus="if (this.value == 'name')
{
this.value='';
}"
onblur="if (this.value == '')
{
this.value='name';
}" />

Regards:
Arun K
.NET Developer
http://aruninnice.blogspot.com/
Bangalore
Do not forget to Rate the post...



Post Reply

 This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.


Next : javascript code
Previous : how to call javascript function when checkbox is checked/unchecked
Return to Discussion Forum
Post New Message
Category: JavaScript

Related Messages



dotNet Slackers

About Us    Contact Us    Privacy Policy    Terms Of Use