• 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

Why rand() every time I refresh the page?

Remove "estimated for {country}" text after tax amount in Woocommerce checkout page

Composer Warning: openssl extension is missing. How to enable in WAMP

How can I convert from a{a{} b{}} to a[a[],b[]] using php preg_match?

Minimum order amount except for specific shipping method in WooCommerce

PHP rotate matrix counter-clockwise

Laravel Command Schedule Not Working Properly

Yoast SEO (WordPress Plugin) - Get plugin generated data manually

Unable to Edit config.inc.php

Clear javascript source cache laravel 5.8

php 7 php.ini upload_max_filesize not working

Split comma separated value from table column into rows using mysql?

Statement that checks whether a URL contains a particular path?

PHP how to detect if running on arm64 cpu?

Distribute array row data to make multiple new rows

About Contact Privacy policy Terms and conditions