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
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
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")){
break;
case 'f':
$("#salary_row").hide();
$("#dayrate_row").show();
break;
default:
$("#salary_row").hide();
$("#dayrate_row").hide();
break;
}
});
____
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
quot;#salary_row").hide();
$("#dayrate_row").show();
break;
default:
$("#salary_row").hide();
$("#dayrate_row").hide();
break;
}
});
________
From: jquer
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
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"
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
9 matches
Mail list logo