I am facing some problems in hiding fields from the New and edit forms, if I chose to do so from the Content Type settings and set the column as hidden. As there seems to be some scenarios where these settings will get overridden, such as changing the default value of the hidden field.
So I am now trying to hide columns using jQuery instead, but I am asking what is the best approach to hide columns using jQuery? For example inside my issue tracking's New Form i got a column named "Item number" which I want to hide , so how I can hide it using jQuery ?
The related mark up is :-
<table width="100%" class="ms-formtable" style="margin-top: 8px;" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="113" class="ms-formlabel" nowrap="true" valign="top"> <h3 class="ms-standardheader"> <nobr>Item Number</nobr> </h3></td> <td width="350" class="ms-formbody" valign="top"> <span dir="none"><input title="Item Number" class="ms-long ms-spellcheck-true" id="_x0049_D1_806a702b-1716-47f5-a93c-16067f502daf_$TextField" type="text" maxlength="255" value=""><br></span> <span class="ms-metadata">Do not customize at the list level</span> </td></tr></tbody>
here is a screenshot when i entered "item number" in the Description field:-