vikasbhagwagar
09-04-2006, 06:11 AM
Hello,
I have an HTML page. which contain a form. but according to requirements (user selections of SELECT control ), I am inserting some more elements to form by innerHTML.
But problem is DOM doesnt entertain newly inserted element.
e.g. document.forms[0].my_new_inserted_element.value // Returns undefined or Object error.
It's problem of Firefox and Opera. In I.E. its working nicely.
And createTextNode & appendChild is to lengthy procedue for me to insert elements & setting it's property.
Is there any way?, After insering new elements into FORM via innerHTML , we can re-arrange the DOM. So, that firefox & opera consider newly inserted elements for javascript validation ????
I have an HTML page. which contain a form. but according to requirements (user selections of SELECT control ), I am inserting some more elements to form by innerHTML.
But problem is DOM doesnt entertain newly inserted element.
e.g. document.forms[0].my_new_inserted_element.value // Returns undefined or Object error.
It's problem of Firefox and Opera. In I.E. its working nicely.
And createTextNode & appendChild is to lengthy procedue for me to insert elements & setting it's property.
Is there any way?, After insering new elements into FORM via innerHTML , we can re-arrange the DOM. So, that firefox & opera consider newly inserted elements for javascript validation ????