Last active
March 14, 2018 16:49
-
-
Save parzibyte/e6b04e0170375d1623634bed428644e3 to your computer and use it in GitHub Desktop.
This file contains 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
$(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