Accessing Controls from Javascript
Below is some sample javascript code hiding/showing controls from Javascript when using the InMotion framework.
if (getMTControl("Batch.BatchCodeEditLink")) getMTControl("Batch.BatchCodeEditLink").style.display = 'none';
if (getMTControl("Batch.BatchCodeLabel")) getMTControl("Batch.BatchCodeLabel").style.display = 'none';
if (getMTControl("Batch.BatchCode")) getMTControl("Batch.BatchCode").style.display = 'block';