and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hey folks,
Having an issue with trying to remove a node from the DOM inorder to be left with just plain text. The HTML is as follows:
[syntax="html"]
<li id="listitem"><a href="#abc" id="link"><input type="checkbox" id="cb" /> text here</a></li>
I can successfully extract the checkbox and the text, but then cant figure out how to isolate the checkbox as it doesnt seem to be a node.
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Yeah that was perfect thanks d11wtq. I was messing around with trying to remove it from the variable itself rather than just taking it straight out of the DOM.