simflex Posted October 1, 2011 Share Posted October 1, 2011 Hello Experts, I beg for your assistance. I have a few textboxes similar to this one below: <span style="color:#f00; margin-left:0;" onmouseover="alert('IMPORTANT REMINDER: When pledging with CHECK payment, please enter the CHECK amount and check the box to your right');"><asp:TextBox ID="chck1" runat="server" Width="75px" Text = "0" onchange="caltot('tot_amt1','chck1','onetime1','multi1')" Ontextchanged = "getFednameamt"></asp:TextBox></span> WHen a user clicks on the textbox to enter an amount of money, we would like a message similar to the demo on this link: http://jqapi.com/#p=focus to be displayed. The only thing that we would like to change is the content. We can handle that. Please assist if you can. Thanks a lot in advance. Link to comment https://forums.phpfreaks.com/topic/248212-displaying-a-message-when-a-textbox-is-clicked/ Share on other sites More sharing options...
simflex Posted October 1, 2011 Author Share Posted October 1, 2011 I have made some progress with this. Right now, this is what I have: <head> <style type="text/css">span id='1' {display:none;}</style> <script type="text/javascript" src="jqueryMsg.js"></script> </head> <asp:TextBox ID="chck1" runat="server" Width="75px" Text = "0" onchange="caltot('tot_amt1','chck1','onetime1','multi1')" Ontextchanged = "getFednameamt"></asp:TextBox> <span id='1'>focus fire</span> <script type="text/javascript">window.onload = (function () { try{ $("input:text").focus(function () { $(this).next("span").css('display','inline').fadeOut(1000); }); }catch(e){}});</script> This works. However, I would like to have this message: <span id='1'>focus fire</span> display on a new window once the textbox is clicked. Any ideas how I can get this done? That's all that is left now. Thanks again in advance for your assistance. Link to comment https://forums.phpfreaks.com/topic/248212-displaying-a-message-when-a-textbox-is-clicked/#findComment-1274593 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.