This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$("#mySelect2").val("{{ids}}").trigger('change'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$query->andWhere(['>=','date(i_date)',date("Y-m-d")]); | |
$query->andWhere(['<=','date(i_date)',date("Y-m-d")]); |
NewerOlder