jquery - get text from SPAN element always returns null -


below html structure:

<span id="id1" class="classname1" xmlns="http://www.w3.org/1999/xhtml"> <span class="class_2">user created successfully: laksh venkat</span> 

when try text "user created successfully: laksh venkat" above html have return null or empty using xpath.

so have tried using jquery , below code have used:

string script = "return document.getelementbyid('id1').text"; 

but again i'm returned null, tried using .textcontent, .innerhtml. nothing working. suggestion pls??. please tell me how text above html. highly helpful.

thanks in advance,

regards


Comments

Popular posts from this blog

java - JavaFX 2 slider labelFormatter not being used -

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -