find all radTextBox in a panel to clear each value jquery

2 posts, 0 answers
  1. chen
    chen avatar
    3 posts
    Member since:
    Dec 2010

    Posted 13 Jun 2014 Link to this post

    Hi all,

    I need you guys help on jquery to get all the input Type of RadTextBox in a panel and then clear the value each. I found example of jquery here 

    But the input[type=text] itself has clear other control as well such as RadComboxBox as it has input[type=text] in it. How to find only the RadTextBox that contain in a panel and clear the value of it?

    Thanks in advance.
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 13 Jun 2014 in reply to chen Link to this post

    Hi chen,

    Please try the below JavaScript to achieve your scenario.

    function pageLoad() {
        var item = document.getElementsByTagName("input");
        for (var i = 0; i < item.length; i++) {
            if (item[i].type == "text") {

Back to Top