1. Hugh is now back at work, more or less full time, after a slower than expected recovery from his neck surgery early this month. Obviously we have a backlog of support to clear, and are working as hard as we can to take care of it. If you have an unanswered thread more than 3 days old, please post one (and only one) "bump" on it, to move it in to our "last 3 days" list. If you have an unanswered issue in a forum you no longer have access to due to subscriptions timing out, please use the Contact Us form, and provide us with the URL to the thread.

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