Skip to content

Instantly share code, notes, and snippets.

@parzibyte
Last active March 14, 2018 16:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save parzibyte/e6b04e0170375d1623634bed428644e3 to your computer and use it in GitHub Desktop.
Save parzibyte/e6b04e0170375d1623634bed428644e3 to your computer and use it in GitHub Desktop.
$(function(){
$("#miSelect").material_select(); //Iniciar componente
/*
Escuchar clicks de botones
*/
$("#seleccionarTacos").click(function(){
$("#miSelect").val(1);
$("#miSelect").material_select(); // Refrescar
});
$("#seleccionarPizza").click(function(){
$("#miSelect").val(2);
$("#miSelect").material_select(); // Refrescar
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment