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
Post a Comment