Guest User

Untitled

a guest
Jan 22nd, 2019
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. <a class="k-link" href="#">Add New Details</a>
  2.  
  3. <list id="getval"> #=Id# (5) </list>
  4.  
  5. $(document).ready(function () {
  6. $(".k-link").click(function(){
  7. var a = document.getElementById(getval).value;
  8. alert(a);
  9. window.location = "/PoDetails/Create/" + a;
  10. });
  11. });
  12.  
  13. $(".k-link").click(function(){
  14. var a = $(this).attr("href");
  15. window.location = "/PoDetails/Create/" + a;
  16. });
  17.  
  18. $(document).ready(function () {
  19.  
  20. $(".k-link").click(function(e){
  21.  
  22. e.preventDefault();
  23.  
  24. var link= $(e.currentTarget).attr('href');
  25.  
  26. window.location = "/PoDetails/Create/" + link;
  27.  
  28. });
  29. });
Add Comment
Please, Sign In to add comment