0

Hello friends.

I have a webpage (my.aspx).
In that page i have some controls inside div tag and some controls outside div tag.
Now i want the html source of those controls which are inside div tag using JAVASCRIPT.

How can i do this.

I got the code with which i can get the source of whole page. the code is written in JAVASCRIPT.

function getHtml()
 {
    var srch = document.documentElement.innerHTML;
 }
2
Contributors
2
Replies
3
Views
6 Years
Discussion Span
Last Post by crishlay
0

I got the solution of it.
here is the code

var srch = document.getElementById('divToFind').innerHTML;
0

you can get values in javascript using document.getElementById('divname').innerHTML

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.