Consider below JS statement UploadFrm.DropDownName.appendChild(myElement); I will be passing the value for "DropDownName" as arguement.... I cannot staright the way use that variable "DropDownName" in that single line statement, its throwing out error so i did the concatination like below one,... var append = "UploadFrm." + DropDownName + ".appendChild(myElement)"; How can i execute the statement which is stored as string in the variable "append".
Hello please, is anybody there to help me out? This may seem very very basic doubt......even silly... but I wonder if u cud help me out.. is problem understandable??
Hi, Not sure exactly what you are asking, but... If you are wanting to access a control that is passed by name, use: document.getElementById(DropDownName) If you are wanting to execute a javascript function, check out the eval function.
thanks a lot BurgerKing. I was just looking out for function like "eval" as i am being beginner for this JavaScript...i had struggled to get it done.. As per your help a big messy code was commonised and reduced