albert albert

albert albert

  • NA
  • 524
  • 0

first element in comma saperated value and Jquery

May 23 2012 4:01 AM
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)