Last active
December 17, 2015 03:38
-
-
Save animista01/5544248 to your computer and use it in GitHub Desktop.
Acceder al option seleccionado de un select (Etiqueta HTML)
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
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