1)In my Dojo widget, I have two additional widgets loaded inside. If I need to clear all text boxes within the widget, I currently use this method:
this.myAttachPoint.value="".
Is there an alternative code that can achieve the same result without adding extra lines of code?
2)For validation purposes, I have been checking each field individually with the following example:
if(this.myAttachpoint.value.trim() == "" ){
//show some error message
}
As the number of fields in my widgets is increasing to 50, it's becoming cumbersome to handle them individually. Can anyone suggest a more efficient approach?