IC SunsetThe developerWorks Connections platform will be sunset on December 31, 2019. On January 1, 2020, this community and its apps will no longer be available. More details available on our FAQ.
Topic
  • 1 reply
  • Latest Post - ‏2014-09-20T11:23:09Z by jitupkp
oblo10
oblo10
1 Post

Pinned topic ajax multiple links problem

‏2011-11-13T23:28:18Z |
Hi . I have a problem with my ajax code. I have n number of links and I want to pass variables to my sort2.php so that I can understand which link to be run. Is there a way to do it? My code is as follows.
<script type="text/javascript">
$(document).ready(function()
{
$("#submit_prog").click(
function()
{
$.ajax(
{
type: "POST",
url: "sort2.php",

success:
function(t)
{

$("div#content").empty().append(t);
},
error:
function()
{
$("div#content").append("An error occured during processing");
}
});
});
});
</script>





first page


<center>
        Please Wait...

</center>