How can I get link button text in my rad grid by jquery?

I have a grid containing a link button for a code column. The user can check each flag, and when the user clicks on the top button of my page, all the code that has been verified by the user will be displayed in a text box on another page, This means: (the user can select several lines using the checked flag and transfer the entire code which the user selects with the jQuery function, in a text box on another page), but my problem is that I cannot access and get the code for the code. I used CSS and it works. It turns yellow, but I can’t access the text when I run it. the warning statement presents me this text instead of code:

function (e){ return b.access(this,function(e){ return e===t?b.text(this):this.empty().append( (this[0]&&this[0].ownerDocument || o).createTextNode(e)) },null,e,arguments.length) } 

How can I fix this problem? if anyone knows please help me fix this, thanks.

 function selectcheckCheckBoxes() { alert("1234 "); var gridClientID = $("#gvwHuman"); jQuery.each($("#gvwHuman input:checkbox"), function () { if (this.checked) { $(this).parent().next().css('background-color', 'green'); var a = $(this).parent().next().css('background-color', 'red'); ; var j = $(a).find(".link").css('background-color', 'yellow'); ; var j2 = $(j).text; alert(j2); } }); } 

enter image description here

+4
source share
2 answers

try the following:

 var j2 = $(a).find(".link").text(); 

if it doesn't work, can you post your html code?

+3
source

The code below will not include the link text. Invalid syntax.

  var j2 = $(j).text; 

So change this as

 var j2 = $(a).find(".link").text(); 
0
source

Source: https://habr.com/ru/post/1482887/


All Articles