Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <a class="k-link" href="#">Add New Details</a>
- <list id="getval"> #=Id# (5) </list>
- $(document).ready(function () {
- $(".k-link").click(function(){
- var a = document.getElementById(getval).value;
- alert(a);
- window.location = "/PoDetails/Create/" + a;
- });
- });
- $(".k-link").click(function(){
- var a = $(this).attr("href");
- window.location = "/PoDetails/Create/" + a;
- });
- $(document).ready(function () {
- $(".k-link").click(function(e){
- e.preventDefault();
- var link= $(e.currentTarget).attr('href');
- window.location = "/PoDetails/Create/" + link;
- });
- });
Add Comment
Please, Sign In to add comment