Skip to content

Instantly share code, notes, and snippets.

View Faizanq's full-sized avatar

Faizan Qureshi Faizanq

View GitHub Profile
$("#mySelect2").val("{{ids}}").trigger('change');
$('#mySelect2')
.empty() //empty select
.append($("<option/>") //add option tag in select
.val("20") //set value for option to post it
.text("nabi")) //set a text for show in select
.val("20") //select option of select2
.trigger("change"); //apply to select2
$query->andWhere(['>=','date(i_date)',date("Y-m-d")]);
$query->andWhere(['<=','date(i_date)',date("Y-m-d")]);