Skip to content

Instantly share code, notes, and snippets.

@animista01
Last active December 17, 2015 03:38
Show Gist options
  • Save animista01/5544248 to your computer and use it in GitHub Desktop.
Save animista01/5544248 to your computer and use it in GitHub Desktop.
Acceder al option seleccionado de un select (Etiqueta HTML)
window.onload = function() {
$("select").change(function () {
var str = "";
$("select option:selected").each(function () {
str += $(this).text();
});
compr(str);
});
function compr(str){
if(str == 'Vendedor'){
$.blockUI({
message: $('#ocultoVendedor'),
css:{
top: '30%',
borderRadius: '10px'
}
});
$('.blockOverlay').attr('title','Click afuera para desbloquear').click($.unblockUI);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment