TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
albert albert
NA
524
0
returning element from a string
May 23 2012 9:14 AM
Hi everybody ,
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 }
"
>
1
</
option
>
<
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 }
"
>
2
</
option
>
<
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 }
"
>
3
</
option
>
[/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
Reply
Answers (
0
)
Create AJAX Control
Microsoft Ajax Library