• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

how to insert data into select2 search input after scan using qrcode

javascriptphpcodeigniterjquery-select2


PHP Snippet 1:

$('#add_order').select2();

PHP Snippet 2:

$(function(){
  //Your script
  console.log($('#add_order').lenght);//should display 1!
  $('#add_order').select2();
   :
   :
});

PHP Snippet 3:

$('#add_order').val("yourvalue").trigger("change");

Related Snippets

Connecting an HTML webpage to a SQL Server

Can't exclude directories from .htaccess mobile redirect?

How to get an Array value inside an object in an array Php [duplicate]

How to find the date a user created their Google account

Woocommerce redirect after add-to-cart error

array_map triple dimensional array [duplicate]

How to disable only_full_group_by option in Laravel

Why "Class 'GuzzleHttpClient' not found" even after Installing it in Laravel?

Convert every two values of an associative array into key-value pairs

advanced custom fields wordpress custom class

get attribute from class not working php 7

How can i hide dt if dd got empty value

How update php.ini on a Mac OS X Mojave?

PHP, how to convert Int value to Week days

How to add a custom field to all Woocommerce attribute terms using add_action

About Contact Privacy policy Terms and conditions