Originally Posted by jordandap
hey it worked but it didnt get rid of the "(Hint: S__)" is there anyway of triming this off?
then your example was different than the actual source. tisk tisk...
at any rate, just use a split:
//example: (modify arguments to suit your needs)
"data", //examine each node's .data property (only hits text nodes)
/\?/, //looking for text with a "?"
"match", //using String().match method to accept arguments
document.getElementById("questiondiv") // looking in the question div
).textContent.split("?")+"?" //show text of first match
BROWSER STATS [% share]
(2013/10/31) IE7:0.5, IE8:8.6, IE9:5.3, IE10:12.3, FF:17.7, CH:41.8, SF:8.1, MOBILE:20.4