Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
DIV's on a WebDialogWindows
posted

Hi,

I have a page that opens a webdialog when a user presses a buttone , the dialog contains a webdropdown control. When the dropdown value is changed i want to show a DIV and hide another DIV.

I'm using this command var div = document.getElementById("incidentSpecificQuestions"); , but the value is always NULL because it's not in the DOM tree. How can l work around this?

Any Help?

 

Parents
  • 24497
    posted

    HI Naish,

    It is hard to say why you can not find DIV which is probably rendered by your application. I suggest you to look at generated html and search for that 'incidentSpecificQuestions' string.
    If there is element with that id, but getElementById fails, then it is rather strange.
    I think you should provide a simple sample (aspx) which contains dialog and your 'incidentSpecificQuestions' and how you search for that element. There is no need in the rest like dropdown, because they should be irrelevant.

Reply Children