Click here to Skip to main content
15,891,597 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi Friends,

Good day to you.

My name is giridhar,i have a doubt regarding data tables.

Iam getting data from controller to populate data in my datatables.

I need to get the data based on one input field(in my case customerid).

how should i achieve this.I tried but failed.

My jsp should contain an input field.Based on the input of the user i should display the data into datatable.

The input field and datatable should be independent to each other.

Please help me.

my code is,



script type="text/javascript">
$(document).ready(function() {
$("#user").dataTable({
"bProcessing" : true,
"bServerSide" : true,
"sAjaxSource" : "./UserDataTableService",
"sPaginationType" : "full_numbers",
"bPaginate" : true,
"bJQueryUI" : true,
"aaSorting": [[0,'desc']]
})
});
</script>

</head>
<body>

<form>
customerId: <input type="text" name="custid" id="custid" />
<input type="submit" value="Submit" id="search" >
</form>








</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