i am doing this:
if ($(this).prop('checked')) {
var checkText = $(this).next('a').text();
to get the node text of one of the nodes in my treeview
here is the HTML source:
<a class="TreeView1_0" href="javascript:__doPostBack('TreeView1','sPreAnalytical\\Labels\\GoodStuff')" onclick="TreeView_SelectNode(TreeView1_Data, this,'TreeView1t2');" id="TreeView1t2">Specimen collection device mislabeled/unlabeled by practice</a>
the jquery line above returns:
Specimen collection device mislabeled/unlabeled by practice
however i need to return:
GoodStuff
how do i do it?
please note that i do not always have \\Labels\\ in the text
what DOES stay constant is this: href="javascript:__doPostBack('
if it’s much simpler i am even happy returning this:
javascript:__doPostBack('TreeView1','sPreAnalytical\\Labels\\GoodStuff')
How about the code below or something similar?