title: How To Get The Value Inside td using custom attribute
body: <p>I want to get the value of custom attribute which is inside the td tag</p>
  
  <p>when i click the update button the popup will show and the value should be inserted in the textbox everything is working but i am not been able to get the value of td which has custom attribute</p>
  
  <pre><code>echo "&lt;td class='tdid'  id='test' userid='$id'&gt;".$row["id"]."&lt;/td&gt;";
  echo "&lt;td class='tdtext' id='test' check='$id'&gt;".$row["name"]."&lt;/td&gt;";
  echo "&lt;td&gt;&lt;Button style='margin-left:10px;' class='btn btn-primary buttonclass' tayyab='$name'&gt;edit&lt;/Button&gt;
  </code></pre>
  
  <p>jquery code of update button</p>
  
  <pre><code>$(".buttonclass").click(function(){
     $('#dialog').dialog('open');
     var edit=$(this).attr("tayyab");
     $("#textbox").val(edit);
     $(".showtext").val(edit);
  
     var labelid=$(this).attr("userid");  
     $(".u_id").val(labelid);
     alert(labelid);
  });
  </code></pre>