> <script type="text/javascript"> getPropertyNum();</script>
This just means that you are executing the function getPropertyNum()
and ignoring the return value, nothing else. To make sure the value is reflected in the DOM tree, you need to either do document.write(getPropertyNum())
(not recommended) or use the HTML DOM.
A few other things:
- Don't use tabs for indentation, at least while pasting the code. It makes it harder to read the code. Use 2/4 spaces or use an IDE / Editor which can convert from tabs to spaces.
- Also paste the accompanying XML file / response so that the people who want to help you out can try running the snippet without having to create their own test cases / sample input.
Revert back in case of more queries.