I Have the below code and I need to find the text which is not in the span
is there any way in jquery or Javascript where I can track to find if there is a text not in the span

Loading
I Have the below code and I need to find the text which is not in the span
is there any way in jquery or Javascript where I can track to find if there is a text not in the span

Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Abhishek ChadhaPosted Nov 29, 2022, 11:48 AM
No it didn't work
Sachin SinghPosted Nov 12, 2022, 9:30 AM
Sorry, couldn't understand your question last time,
the exact regex to find if any text is there outside the span tag, should be
I have tested it and it works fine. Please let me know if it resolves your issue.
Sachin SinghPosted Nov 10, 2022, 5:46 PM
Then also, if outer texts (other than span) will always be in double quote then you can check length of match>0 in above code.
Abhishek ChadhaPosted Nov 10, 2022, 4:45 PM
Hi sachin
I want to know that is there any text exists other than span nodes, i don't need the text i just want to know if it exists
Sachin SinghPosted Nov 10, 2022, 3:22 PM
if you always get outer text within quotes then