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.

 

 

Link to comment
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.