Gaurav Raj

Gaurav Raj

  • NA
  • 475
  • 87.9k

how can read command argument value read with jquery & print

Sep 17 2017 9:28 AM
how can read command argument value read with jquery & print
  1. <script src="js/jquery-1.3.2.min.js"></script>  
  2. <script type="text/javascript">  
  3. $(function () {  
  4. $('#TotalComment').click(function () {  
  5. var lnkProgress = document.getElementById('<%= TotalComment.ClientID %>');  
  6. var bookingID = lnkProgress.getAttribute("CommandArgument");  
  7. var na = $('#TotalComment').data('CommandArgument');  
  8. var id = $('#TotalComment').getAttribute('commandArgument');  
  9. alert('Alter with jQuery Button Clicked '+id);  
  10. });  
  11. });  
  12. </script>  
<asp:LinkButton ID="TotalComment" runat="server" CssClass="btn btn-link tooltips " Text="check" CommandArgument="1" data-id="1"></asp:LinkButton>

Answers (2)