how to insert data into select2 search input after scan using qrcode
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");