The reason why this didn't work:
$('#courses optgroup:eq("+choosenValue+") option');
Is that you are mixing single quotes and double quotes.
$('#courses optgroup:eq('+choosenValue+') option');
Would work, if choosenValue is a variable that has the value of 3.
JK
-Original Message-
F
On Mar 3, 5:34 pm, mjpg <[EMAIL PROTECTED]> wrote:
> DO NOT SEEM TO WORK:
>
> $('#courses optgroup:eq("+choosenValue+") option'); // and I don't
> understand this anyhow
No need for shouting. Seems like you messed up double and single
quotes. Try:
$('#courses optgroup:eq(' + choosenValue + '
2 matches
Mail list logo