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 - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -