ZELDAX

docpanel.js

Jan 15th, 2019
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $(function ()
  2. {
  3.     $.post( "docs/ajax_1.php", function( data ) {
  4.         $( "#documentation" ).html( data );
  5.     });
  6.     $(".CITdocs").show();
  7.     $("body").on("keyup", "#search_ID", function() {
  8.         var text = $(this).val();
  9.         if(text.length == 0)
  10.         {
  11.             $('#documentation td').show();
  12.             return -1;
  13.         }
  14.         $('#documentation td').hide();
  15.         var find = $('td.mta:contains('+ text +')');
  16.         find.show();
  17.     });
  18.     $("body").on("click", ".mta", function () {
  19.         var varCIT = $(this).html();
  20.         $.post("docs/ajax_2.php?CITinfoget=" + encodeURIComponent(varCIT), function( data ) {
  21.             $(".CITdocumentation").html( data );
  22.         });
  23.     });
  24. });
Advertisement
Add Comment
Please, Sign In to add comment