how to determine an element's id

Discussion in 'Subscriber Support' started by smuhanguzi, Aug 5, 2008.

  1. smuhanguzi New Member

    Level: Standard
    Hullo,
    If i create a dropdown element,and give it a name eg. towns,using fabrik 1.0.5 and 1.0.6,how do i determint the id of that element.or what is the id of such an element.
    Regards
    Sam
  2. rob Administrator

    Level: Community
    hi Sam

    Depends what you mean by 'id' - if you mean the numeric reference for the id that's stored in the database you can see that by going to admin, selecting components->fabrik->elements and hovering over the link to edit the element. At the end of the link is "&cid=x" where x is the element's id.

    If you mean the HTML id for the element, the simplest thing to do is to install frebug (www.getfirebug.com) in firefox, go to your form, open the frebug tab (F12) click on the "inspect" button and hover over your dropdown, it shoul highlight the dropdown's DOM from which you should be able to see the id.

    hth
    Rob
  3. cheesegrits Support Gopher

    Level: Community
    Or you can 'view source' and find it that way.

    But FireFox with FireBug has so many useful features, it's worth installing if you are going to do much work with Fabrik.

    -- hugh

Share This Page