Tuesday, December 1, 2009

Hide a full Section

Some times we have also some requirements like to hide or show a full section which conatins some bunch of attributes(fields) as per the user action.
for this we need to catch a particular attribute of that particular section.Here its "new_attributeName"

//hiding a section
crmForm.all.new_attributeName_c.parentElement.parentElement.parentElement.style.display = "none";

//showing a section
crmForm.all.new_attributeName_c.parentElement.parentElement.parentElement.style.display = "block";

No comments:

Post a Comment