Click here to Skip to main content
16,020,186 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Quote:
I want to send data using $.post(index.php,data,function(){}). now i want to get data from the table row which clicked.... with table header id( with associate value; for example i clicked on edit of vitori record(id=3,fname=vitori,email=vitori@yahoo.com,job=actor) how this record can i get using jquery.....



<html><head>
<meta charset="utf-8" />
<script src="jquery-2.1.1.js"></script>
<style>
.crud{
border: 1px;
}
</style>
<script>
$(document).ready(function(){
$(".crud a").click(function(){
alert($(this).parent.parent[0]+$(this).parent.parent[1]+$(this).parent.parent[2]);
})
});
</script>
</head>
<body>

Simple CRUD Using Jquery And PHP



User Id:Full Name:E-mail:Job:
1Anjleena JuliAnjleena@yahoo.comActor View Edit Delete
2Mr. Bondbond@yahoo.comActor View Edit Delete
3vitorivitori@yahoo.comActor View Edit Delete

</body>
</html>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900