Skip to content Skip to sidebar Skip to footer

Having Trouble Input Html List Option From Xml File

Please help take a look at the following code, its working when calling function displayResult() with button onclick. but I want it to be automatically run when open the page....I'

Solution 1:

You need to call displayResult() after the elements it manipulates have been parsed. So add the following code to a script block at the bottom of your page source (or in an onload or document.ready event handler):

displayResult();

Post a Comment for "Having Trouble Input Html List Option From Xml File"