[jQuery] Re: Dropdown select value help

2007-05-03 Thread Alexandre Plennevaux
Luc, can you post your page so i can have a look at it? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luc Pestille Sent: jeudi 3 mai 2007 15:34 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Dropdown select value help Nope, that

[jQuery] Re: Dropdown select value help

2007-05-03 Thread Luc Pestille
Nope, that didn't work either. =/ It surely can't be this hard to do? -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sam Collett Sent: 03 May 2007 15:24 To: jQuery (English) Subject: [jQuery] Re: Dropdown select value help On May

[jQuery] Re: Dropdown select value help

2007-05-03 Thread Sam Collett
On May 3, 3:14 pm, "Luc Pestille" <[EMAIL PROTECTED]> wrote: > Nope, it still won't automatically show the div. =/ Any other suggestions? I think it should be ":selected" not ".selected" if ($("select#mySelect").is(":selected")){

[jQuery] Re: Dropdown select value help

2007-05-03 Thread Luc Pestille
break; case 'f': $("#salary_row").hide(); $("#dayrate_row").show(); break; default: $("#salary_row").hide(); $("#dayrate_row").hide(); break; } }); ____

[jQuery] Re: Dropdown select value help

2007-05-03 Thread Alexandre Plennevaux
try instead: if ($("#jobtype_row select").val() !=""){ ... _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Luc Pestille Sent: jeudi 3 mai 2007 14:50 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Dropdown select value

[jQuery] Re: Dropdown select value help

2007-05-03 Thread Luc Pestille
quot;#salary_row").hide(); $("#dayrate_row").show(); break; default: $("#salary_row").hide(); $("#dayrate_row").hide(); break; } }); ________ From: jquer

[jQuery] Re: Dropdown select value help

2007-05-03 Thread Alexandre Plennevaux
B and in this case, div #b should show itself without any change from the user. Does that help explain it more? _ From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Alexandre Plennevaux Sent: 03 May 2007 13:28 To: jquery-en@googlegroups.com Subject: [jQuer

[jQuery] Re: Dropdown select value help

2007-05-03 Thread Luc Pestille
ilto:[EMAIL PROTECTED] On Behalf Of Alexandre Plennevaux Sent: 03 May 2007 13:28 To: jquery-en@googlegroups.com Subject: [jQuery] Re: Dropdown select value help Hi luc, basically, with the few details you provide, i can only say that you will trigger things using the event "change"

[jQuery] Re: Dropdown select value help

2007-05-03 Thread Alexandre Plennevaux
Hi luc, basically, with the few details you provide, i can only say that you will trigger things using the event "change" on the select element. From then on, use the select.val() example: $("select#type").change(function(){ if($(this).val()=='root'){ $("select