Jump to content

Displaying a message When a textbox is clicked.


simflex

Recommended Posts

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.

 

 

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.