0
Posted November 26, 2012 by Bandish Patel in Tips
 
 

Post Data Using Jquery


Post data using Jquery

HTML

<a class="upload" href="some.asp">Link</a>
<input type="hidden" name="parameter" value="value-to-send" />

JAVA

$(function() {
    $('.upload').click( function() {
         $.post( $(this).attr('href'),
                 $(this).next('input[type=hidden]').serialize(),
                 function(data) { do something with returned data } );
         return false;  // cancel link default action
    });
});

My name is , but people call me .

Here is my homepage: .

I live in

And this is a picture of me:

I work as an in the role of a at


Bandish Patel