Victor Hugo Marques da Fonseca
unread,Nov 9, 2012, 8:48:34 AM11/9/12Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jque...@googlegroups.com
Galera estou com a seguinte duvida, quero fazer um condição if em jQuery e não consigo.
Eu tenho um select, quero pegar o valor dele, se o valor for "S" quero que apareça dois inputs, se for "N" não apareça nada.
segue o link do codigo
$(document).ready(function() {
$('#perguntaPistaRegistrada').hide();
$('#perguntaPistaRegistrada2').hide();
$('#pistaRegistrada').change(function() {
if($('#pisstaRegistrada1').val() == "S") {
$('#perguntaPistaRegistrada').show('slow');
$('#perguntaPistaRegistrada2').show('slow');
}
});
});