jquery - J QUERUY issue not working the hyperlink -


my link forwarding jsp not working

something wrong in not workng need on :

$("<td>").addclass("labelsearchdata")     .append("<a>")     .attr("href", "/mng/admin/detailcustomlabelsummary")     .text(checkvalue(node, "label"))     .appendto(trow); 

orginal code :

$("<td>").addclass("labelsearchdata")     .text(checkvalue(node, "label"))     .appendto(trow); 

.append() returns object appended to, not object you're appending. code calling .attr , .text on <td>, not <a> you're adding. , when call .text(), replaces <a> appended. try:

$("<td>").addclass("labelsearchdata")     .append($("<a>", {         href: "/mng/admin/detailcustomlabelsummary",         text: checkvalue(node, "label")     }))     .appendto(trow); 

Comments

Popular posts from this blog

python - pip install -U PySide error -

arrays - C++ error: a brace-enclosed initializer is not allowed here before ‘{’ token -

cytoscape.js - How to add nodes to Dagre layout with Cytoscape -