Skip to content

Latest commit

 

History

20 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The best tools make by javascript

https://github.com/PrismJS/prism

https://codemirror.net/5/doc/manual.html

jquery_ui_tips_tricks

jquery ui tips & tricks

Auto Complete with ajax post

$("#search").autocomplete({
  source : function(request, response) 
  {
   $.post("/manager/Assets/ajax_adpsearch", 
   {
    term : request.term
   }, function(data) 
   {
    response(data)
   }, 'json');
  },
  select : function(event, ui) 
  {
   var selectedObj = ui.item;
   console.log(selectedObj.id) //selected id
  }
 });
 

server script

<?php

$data = array( 
    "id" => 1, "value" => "Apple" , "data" => "Fresh"
    ,"id" => 2, "value" => "Mango" , "data" => "Rotten"
    ,"id" => 3, "value" => "Orange" , "data" => "Rotten"
    ,"id" => 4, "value" => "Green Apple" , "data" => "Fresh"
);
header('Content-Type: application/json');
json_encode($data)

About

jquery ui tips & tricks

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages