Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 883557
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T12:36:39+00:00 2026-05-15T12:36:39+00:00

i have one textfield and one show button.. i want after i have been

  • 0

i have one textfield and one show button..
i want after i have been type some string inside textfield then click that button…
i can show all information from DB..
what’s code to do that??

$(document).ready(function){
var oTable;
$("#show").click(function(){
     var params=$("#myform").serialize();
          $.ajax({
                  async: false,
                  cache: false,
                  data:  params,
                  success: function(res){
                                  oTable.fnReloadAjax();
                                  oTable.fnFilter(res);
                                  return this;
                                 }
                       });
      oTable=$("#form").dataTable({............

and for process page:

"SELECT ID,Name FROM DATA";
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T12:36:39+00:00Added an answer on May 15, 2026 at 12:36 pm
     $("#show").click(function(event){
               oTable = $("#datalist").dataTable({
                              "bRetrieve"  : true,
                              "bServerSide": true,
                              "bProcessing": true,
                              "sAjaxSource": 'showlist.php',
                              "fnServerData": function (sSource,aoData,fnCallback){
                                            aoData.push({"name":"line","value":$("#showline").val()});
                                            aoData.push({"name":"model","value":$("#showmodel").val()});
                                            aoData.push({"name":"NIK","value":$("#showNIK").val()});
    
                                                    $.ajax({
                                                             "dataType":'json',
                                                             "type":'POST',
                                                             "url":sSource,
                                                             "data":aoData,
                                                             "success":function(json){
                                                                           fnCallback(json);
                                                                                 }
                                                             });
                                               },
    

    this is the final answer…

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have one textfield for input some serial number code.i want set this code
I have created one jsp form which contains the username textfield. On the click
I have written two methods that take and return a string. One converts from
I have two classes, one with textField and button and other is with label.
I have made a simple form with one textField and command, I want to
I have two <textField> one by one. Is possible to automatically stretch or shrink
In my iPad app I have two textfields. One displays the normal, default textfield
have one time consuming step that flattens a bunch of files. basically i'd like
I have one XML request which I need to modify (to XML) and then
i have this code for get data from textfield: <script type=text/javascript> var mod=document.getElementById(mod).value; ajax(mod);

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.