Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Hide won't
Message
De
10/03/2014 14:59:05
 
 
À
10/03/2014 14:49:55
Information générale
Forum:
Javascript
Catégorie:
JQueryUI
Titre:
Divers
Thread ID:
01596038
Message ID:
01596042
Vues:
43
Try alert($('#RwrdCode').val()); to verify you're getting the value you expect.

As for the {}, I suggest you put them on a new line to help see where they line up. If you are using Visual Studio, you can place the cursor after one, and it will highlight the matching begin or end bracket.

>ok...got past the '=' vs '==' thing - also have fought through the stupid mis-matched '{' and '(' things ('splain to me how that's so much better than a simple 'begin' and 'end' if you insist on having to tell the compiler where a command starts and finishes)
>
>Now...for something completely different.... Hide won't
>
>
>$(function RewardOnChng(control) {                       
>alert("In RewardOnChng function"); 
> if ($('#RwrdCode').val() == 'custom'){
>        $('#CustomCodes').fadeIn();}
>      else{
>        $('#CustomCodes').hide();}
>
>
>This is on a dropdown list with a label and textbox for free entry on a certain value.
>
>"CustomCodes" is the [broket}DIV[/broket] definition for the label/textbox
>
>I know that it's going into the function, since the alert box shows....and that's all that happens, as far as I can tell.
>
>Why won't it hide?
Craig Berntson
MCSD, Microsoft .Net MVP, Grape City Community Influencer
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform