Solved

clear textbox content using jquery

Posted on 2015-02-11
2
79 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 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

Report: Liquid Web beats Amazon, Rackspace & More

A study by performance analyst firm Cloud Spectator finds that Liquid Web beats rivals Amazon, Rackspace and DigitalOcean when it comes to website and cloud application performance.

Question has a verified solution.

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

Suggested Solutions

How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. 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…

734 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