Friday, 22 March 2013

POST DATA USING JQUERY


jquery url >>http://code.google.com/p/jqueryjs/downloads/list

function POST()
{
var getvaluefrominput= $('#INPUTID').val();
    $.ajax({
        type: 'POST',
        url: 'phppagename.php',
        data: "ID="+getvaluefrominput,
        success: function(msg)
        {

           alert(msg)
          $('#ID').html(msg);
         }
    });
}

No comments:

Post a Comment