View Single Post
Old 07-17-2011, 10:49 AM   PM User | #1
jordandap
New Coder

 
Join Date: Jul 2011
Posts: 44
Thanks: 5
Thanked 0 Times in 0 Posts
jordandap is an unknown quantity at this point
stripping text from a div and storing into var

well what i want to do is strip the following divs of only some of its information so its easier for the script i have made to complete the answer.

Code:
<div style="display: none;" id="questiondiv">You challenge The Wiseman to a game of trivia, he asks you this question:<br/>&nbsp;<br/>
               <!--store from here-->What did David Stirling find?<!--to here in a var--> (Hint: S__)<br/>&nbsp;<br/>
                <input class="dungeoninput" type="text" size="16" id="answer" value="" maxlength="32"></input><br/>
                <div class="btn100" style="margin-top: 6px;"
				onclick="loadDiv2('/dream/explore?action=acceptTrivia&qid=727'); return false;">Answer</div>
                </div>
but it cannot edit the html in anyway(on load edit) but edit it trough firefox greasemonkey preferably. i would be very greatfull for anyone who can help because i know some things about javascript but when it comes to stripping content my brain just fries, and if you need more explanation just ask.

Last edited by jordandap; 07-17-2011 at 10:50 AM.. Reason: changing [html][/html] tags for [code][/code] tags
jordandap is offline   Reply With Quote