Login  Register

Adding id attribute to html table

Posted by bharat on Feb 23, 2012; 6:31am
URL: http://ofbiz.116.s1.nabble.com/Adding-id-attribute-to-html-table-tp4412945.html

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>