Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8387751
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T18:18:00+00:00 2026-06-09T18:18:00+00:00

What I am trying to achieve is onclick will remove the text within a

  • 0

“What I am trying to achieve is onclick will remove the text within a textbox”.

I read some answers from this site which someone is using “function pageLoad(sender, args)” javascript but the problem is that on debug using Firefox break point the function line doesn’t stop on it. Am I missing a loaded up javascript requirement from microsoft or something else? here is my test code.

    function pageLoad() {
        $("#<%=Text_Message.ClientID%>").click(function () {
            alert("Handler for .click() called.");
        });
    }
    $(document).ready(function () {
        $("#<%=Text_Message.ClientID%>").click(function () {
            alert("Handler for .click() called.");
        });
    });

textbox

<asp:TextBox ID="Text_Name" runat="server" CssClass="" Width="234px" >Name</asp:TextBox>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T18:18:02+00:00Added an answer on June 9, 2026 at 6:18 pm

    use focus instead of click on textbox and empty its text using $(this).val("");

    Live Demo

    $(document).ready(function () {
            $("#<%=Text_Message.ClientID%>").focus(function () {
                alert("Handler for .click() called.");
                $(this).val("");
            });
     });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Trying to achieve any moving effect while appending an element from one to another
What i'm trying to achieve is playing a guitar chord from my python application.
I am trying to achieve something like this. The Expandable List consists of the
I am trying to achieve something in MySQL but even with all the answers
I am trying to achieve dynamic META information so that it will allow META
I'm trying to achieve a fairly easy triggering mechanism for deleting multiple items from
Here's what I'm trying to achieve: This is the HTML code I wrote: <div
I'm really struggling with this piece of code. What I'm trying to achieve: I
I am trying to achieve this in an android app layout. So far I
I'm trying to call a php function from jquery function to calculate some values

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.