PHP Classes

File: javascript/jquery-ui.md

Recommend this page to a friend!
  Classes of Kabir Hossain   PHP CodeIgniter Tips Tricks   javascript/jquery-ui.md   Download  
File: javascript/jquery-ui.md
Role: Auxiliary data
Content type: text/markdown
Description: Auxiliary data
Class: PHP CodeIgniter Tips Tricks
Collection of tips and examples to use CodeIgniter
Author: By
Last change:
Date: 21 days ago
Size: 1,092 bytes
 

Contents

Class file image Download


$( "#birds" ).autocomplete({
            source: "search.php",
            minLength: 2,
            select: function( event, ui ) {
                log( ui.item ?
                    "Selected: " + ui.item.value + " aka " + ui.item.id :
                    "Nothing selected, input was " + this.value );
            }
        }); 
        
        
$(function() {
         $( "#tags" ).autocomplete({
            source: function(request, response) {
                $.ajax({
                  url: "<?php echo site_url('controller/getQuoteArray'); ?>",
                  data: { term: $("#tags").val()},
                  dataType: "json",
                  type: "POST",
                  success: function(data){
                  response(data);
                  }
                });
              },
            minLength: 3
        });
    }); 

jQuery validation

http://jqueryvalidation.org/validate

jQuery get user selected option text

var select_box = $('select#my_select_box');
var selected_text = $(":selected", select_box).text();