Solved

clear textbox content using jquery

Posted on 2015-02-11
2
71 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
2 Comments
 
LVL 44

Accepted Solution

by:
Rainer Jeschor earned 500 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Hi all! Recently there was EE question and the person wanted to have a multi-column textbox <div> selection, so as a first step to answer I provided a link but that was not complete with JavaScript selection, but had a good style sheet. So as a ques…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
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)

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now