Adding id attribute to html table

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Adding id attribute to html table

bharat
Could some one help me with pointer on how to add id attribute to table generated by form?

For eg if i want to add the http://www.datatables.net/blog/Drill-down_rows to the table generated i require an id so that i can access the table in jquery and add the special effects.

Is there any other way in which i can find a work around. We can use ftl to achieve the same, but we have added quite a number of forms to add the work around.

                <form name="Findwarehouse" target="TecleverFindwarehouseList"
                title="" type="single" style="search-form">
                <field name="facilityId" title="Facility Id" position="1">
                        <text-find></text-find>
                </field>

                <field name="facilityName" title="Facility Name" position="2">
                        <text-find></text-find>
                </field>
                <field name="description">
                        <hidden />
                </field>

                <field name="submitButton" title="Go" widget-style="goorcreate"
                        position="3">
                        <submit button-type="button" />
                </field>
                <field name="noConditionFind">
                        <hidden value="Y" />
                </field>
        </form>
Reply | Threaded
Open this post in threaded view
|

Re: Adding id attribute to html table

bharat
Further looking at the form tag there is an id attribute, but when we check framework\widget\src\org\ofbiz\widget\form\ModelForm there is no def for that attribute.

Any pointers for the issue do help me