Hi everyone. I have a bit of a problem. I was wondering if someone can show me how to find a container (div element) inside a string.
I'm loading a page's HTML and assigning it to a variable. So for example, the string data has the html source code of a web page. Now inside this string, I have a div with an id that I need to find and assign to the variable data.
Can someone please help me here. Javascript is not my thing.
sorry if i dont understand but what u wanna do is get a certain div out of text well an entire html file can be considered one big string since browsers usually ignore unnecessary whitespace.