Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to disable all the components of OJET Form at one go?

1090377Jun 20 2016 — edited Jun 21 2016

Hi,

I wanted to know as to how we can disable all the elements present in a OJET form at once.

Previously we were using  the following approach:

formElements = document.forms[formName].elements;

  for(var i=formElements.length-1;i>=0;--i) {

  formElements[i].disabled =true;

  }

But in OJET we don't have "<form>" tag , so accessing document.forms[formName].elements is

not supported.

Please suggest as to how we can access all the elements/ components at once so that we can make it

disabled.

Thanks

Danya

Comments
Post Details
Added on Jun 20 2016
3 comments
680 views