User Profile

Collapse

Profile Sidebar

Collapse
bomb23
bomb23
Last Activity: Nov 12 '13, 07:05 PM
Joined: Nov 12 '13
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • hi ,
    it is possible , but you must know number of your input tags in your html document, for example:
    Code:
    <html>
    <input type="text" />
    <input type="text" />
    <input type="text" />
    </html>
    
    <script>
    var firstInput = document.getElementsByTagName('input')[0];
    </script>
    this code get you first input...
    See more | Go to post

    Leave a comment:


  • bomb23
    started a topic javascript parsing HTML from XML

    javascript parsing HTML from XML

    Hi all,

    I have a XML file that among other things has the following node.
    As you can see it contains HTML tags.
    I want to append content of "page" tag into my html document.

    Code:
    <?xml version=""1.0"" encoding=""utf-8"" ?>
    <root>
    <page>
    <div class='clk'>
    <a href='...'>1</a>
    <a href='...'>2</a>
    ...
    See more | Go to post
    Last edited by Rabbit; Nov 13 '13, 09:07 PM. Reason: Please use [CODE] and [/CODE] tags when posting code or formatted data.
No activity results to display
Show More
Working...