Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

clear textbox content using jquery

Posted on 2015-02-11
2
Medium Priority
?
89 Views
Last Modified: 2015-02-11
Hi Expert,

I am able to enable all disabled textbox in asp.net repeater using jquery:
 $(".checkGroup INPUT[type='text']:disabled").removeAttr('disabled');

but I am not able to remove all textbox content using:
 $(".checkGroup INPUT[type='text']:text").removeAttr('text');

any help or comment will be appreciated!
0
Comment
Question by:jssong2000
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 2000 total points
ID: 40604341
Hi,
please try this:
 $(".checkGroup INPUT[type='text']").each(function() {
        $(this).val('');
    });

Open in new window

HTH
Rainer
0
 

Author Closing Comment

by:jssong2000
ID: 40604348
Thank you.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

610 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question