3
Answers

first element in comma saperated value and Jquery

albert albert

albert albert

12y
898
1
Hi everybody,

I have a list of weeks, like this:

[code]
select id="weekIdclass="validonchange="Selectedchange();name="weekId">

[code]

I can get the value with JQuery like this:

[code]
function Selectedchange() {
    $("#txtBox").val($("#weekId").val());
       
        //.attr("selected",0);
}
[/code]

But I want to have the first value: { maandag = 2-1-2012} in a textbox.

How to do that?

THX




Answers (3)
Next Recommended Forum