I have a dropdownlist:
[code]
select id="weekId" onchange="Selectedchange();" name="weekId" class="valid">
<option value="{ Maandag = 2-1-2012, Dindsdag = 3-1-2012, Wendsday = 4-1-2012, Thursday = 5-1-2012, Fryday = 6-1-2012, Saterday = 7-1-2012, Sunday = 8-1-2012 }">1option>
<option value="{ Maandag = 9-1-2012, Dindsdag = 10-1-2012, Wendsday = 11-1-2012, Thursday = 12-1-2012, Fryday = 13-1-2012, Saterday = 14-1-2012, Sunday = 15-1-2012 }">2option>
<option value="{ Maandag = 16-1-2012, Dindsdag = 17-1-2012, Wendsday = 18-1-2012, Thursday = 19-1-2012, Fryday = 20-1-2012, Saterday = 21-1-2012, Sunday = 22-1-2012 }">3option>
[/code]
But how to get with JQuery for example only: Dinsdag?
I have this:
[code]
function Selectedchange() {
var elemlent = $("#txtBox").val($("#weekId").val().toString().split(","));
var string = $find("Dindsdag"); //.attr("selected",0);
print(string);
}
[/code]
but that doesnt seem to work.
THX
Replies
Know the answer? Post it — somebody with the same question will find it here.