how to determine an element's id

smuhanguzi

New Member
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
 
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
 
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
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top