Solved

clear textbox content using jquery

Posted on 2015-02-11
2
69 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
Comment Utility
Hi,
please try this:
 $(".checkGroup INPUT[type='text']").each(function() {
        $(this).val('');
    });

Open in new window

HTH
Rainer
0
 

Author Closing Comment

by:jssong2000
Comment Utility
Thank you.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction Chart.js, used properly, can visually add a difference to your charting applications. It engages your visitors and allows them to interact with data they otherwise wouldn't be able to without expensive and complicated systems. For this…
In this article you'll learn how to use Ajax calls within your CodeIgniter application. To explain this, I'll illustrate how to implement a simple contact form to allow visitors to send you an email through your web site.
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)

771 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

12 Experts available now in Live!

Get 1:1 Help Now