1. #1
    Ext User
    Join Date
    Mar 2007
    Posts
    44
    Vote Rating
    0
    cebola is on a distinguished road

      0  

    Default Change Ids by class

    Change Ids by class


    I need change all IDs of elements that set class is = 'test'
    how to do this?

  2. #2
    Sencha - Ext JS Dev Team Animal's Avatar
    Join Date
    Mar 2007
    Location
    Notts/Redwood City
    Posts
    30,502
    Vote Rating
    47
    Animal has a spectacular aura about Animal has a spectacular aura about

      0  

    Default


    It's what DomQuery was made for. Try this:

    Code:
        Ext.get(document.body).select(".test").each(function(el) {
            el.dom.id = // whatever you want
        });

  3. #3
    Ext User
    Join Date
    Mar 2007
    Posts
    44
    Vote Rating
    0
    cebola is on a distinguished road

      0  

    Default Yes

    Yes


    Tanks animal.

Similar Threads

  1. how can you change css class on a group of elements?
    By gmoney in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 21 Feb 2007, 6:11 PM
  2. InlineEditor class
    By masudkuet in forum Ext 1.x: Help & Discussion
    Replies: 3
    Last Post: 8 Feb 2007, 7:04 PM
  3. YAHOO.ext.ToolbarMenu class
    By mscifo in forum Community Discussion
    Replies: 17
    Last Post: 25 Jan 2007, 1:34 AM
  4. New in SVN: MessageBox class
    By jack.slocum in forum Community Discussion
    Replies: 13
    Last Post: 2 Jan 2007, 6:16 AM
  5. one js menu class base on yui-ext and yui
    By whouseit in forum Community Discussion
    Replies: 8
    Last Post: 6 Dec 2006, 7:10 PM

Thread Participants: 1