Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Condição if em jQuery
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Victor Hugo Marques da Fonseca  
View profile   Translate to Translated (View Original)
 More options Nov 9 2012, 8:48 am
From: Victor Hugo Marques da Fonseca <victorh.marque...@gmail.com>
Date: Fri, 9 Nov 2012 05:48:34 -0800 (PST)
Local: Fri, Nov 9 2012 8:48 am
Subject: Condição if em jQuery

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');
            }

        });

    });


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jansen Nunes  
View profile   Translate to Translated (View Original)
 More options Nov 9 2012, 8:54 am
From: Jansen Nunes <jansen.nu...@gmail.com>
Date: Fri, 9 Nov 2012 11:53:57 -0200
Local: Fri, Nov 9 2012 8:53 am
Subject: Re: [jquery-br] Condição if em jQuery
1- O nome do seu select esta escrito corretamente?

"#pisstaRegistrada1"

2- Tente isso:

$('#pisstaRegistrada1 option:selected').val();

Em 9 de novembro de 2012 11:48, Victor Hugo Marques da Fonseca
<victorh.marque...@gmail.com> escreveu:

--
Jansen

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Victor Hugo Marques da Fonseca  
View profile   Translate to Translated (View Original)
 More options Nov 9 2012, 9:00 am
From: Victor Hugo Marques da Fonseca <victorh.marque...@gmail.com>
Date: Fri, 9 Nov 2012 11:59:50 -0200
Local: Fri, Nov 9 2012 8:59 am
Subject: Re: [jquery-br] Condição if em jQuery

pqp, era isso mesmo !

vlw

Em 9 de novembro de 2012 11:53, Jansen Nunes <jansen.nu...@gmail.com>escreveu:

--
Atenciosamente,
Victor Hugo Marques
Tel.: (61)8537 - 6729

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »