“SELECT2 TAGS SET VALUE JQUERY” Réponses codées

jQuery select2 set valeur

<select id="lang" >
   <option value="1">php</option>
   <option value="2">asp</option>
   <option value="3">java</option>
</select>

<script>
	$("#lang").select2().select2('val','1');
</script>
Matteoweb

SELECT2 TAGS SET VALUE JQUERY

$('#mySelect').select2({
  data: ['one','two'],
  tags: true
});
$('#mySelect').val(['one','two']).trigger('change')
Lokesh003

Réponses similaires à “SELECT2 TAGS SET VALUE JQUERY”

Questions similaires à “SELECT2 TAGS SET VALUE JQUERY”

Plus de réponses similaires à “SELECT2 TAGS SET VALUE JQUERY” dans JavaScript

Parcourir les réponses de code populaires par langue

Parcourir d'autres langages de code