[jQuery] Re: getting the value of list box in jquery

2009-07-03 Thread naz
thanks for your concern i will try this code but the values which i m displaying in list is coming from database so how can i made them selected.Can i do that ?i m adding those values in list through this code for(var j=0; j wrote: > First, this i

[jQuery] Re: getting the value of list box in jquery

2009-07-01 Thread Shawn
First, this is a mailing list. Not an IRC channel or Instant Messenger. This means replies can take hours or even days sometimes. Patience is the keyword here. If you need help with an issue that urgently, try the ##Javascript channel on IRC. The message I am replying to is timestamped 1

[jQuery] Re: getting the value of list box in jquery

2009-07-01 Thread Charlie
post a link to page you are working on, or make a test case and put it in jsbin com.  Morning Z gave you reasons you would get null, so seeing all the code (html and the rest of script you use for the select) will help resolve this. Are you sure the tags created in server code have value att

[jQuery] Re: getting the value of list box in jquery

2009-06-30 Thread naz
i m w8ing for your reply On Jul 1, 9:32 am, MorningZ wrote: > Got some HTML to show of the box? > > if you have > > >      One >      Two >      Three > > > then > > $("#right").val()  will be an array that is "2,3" > > if it's not like that, then (1) your selector doesn't work, (2) > there's

[jQuery] Re: getting the value of list box in jquery

2009-06-30 Thread naz
i m w8ing for your reply On Jul 1, 10:30 am, naz wrote: > i have HTMl code like this > >             > > and i m getting its values from database > but when i write > $('#right').val(); > it give sme null :( > On Jul 1, 9:32 am, MorningZ wrote: > > > > > Got some HTML to show of the box? > >

[jQuery] Re: getting the value of list box in jquery

2009-06-30 Thread naz
i have HTMl code like this and i m getting its values from database but when i write $('#right').val(); it give sme null :( On Jul 1, 9:32 am, MorningZ wrote: > Got some HTML to show of the box? > > if you have > > >      One >      Two >      Three > > > then > > $("#right").val

[jQuery] Re: getting the value of list box in jquery

2009-06-30 Thread MorningZ
Got some HTML to show of the box? if you have One Two Three then $("#right").val() will be an array that is "2,3" if it's not like that, then (1) your selector doesn't work, (2) there's nothing actually selected On Jul 1, 12:18 am, naz wrote: > yes i have multiple value

[jQuery] Re: getting the value of list box in jquery

2009-06-30 Thread naz
yes i have multiple value in that list box and i want to have all values in the form of comma seperated list. you are telling me to write some thing like this?var cources_matrix=$ ('#right').options.val(); right is id of my listbox.i dont know how to do it and bcz of this my work is stoppped. plz

[jQuery] Re: getting the value of list box in jquery

2009-06-30 Thread Charlie
do the options in select each have a value assigned? are you working with a number value and need to parsInt()? Need more info to help can you put an example of this not working in jsbin? or post link naz wrote: i have a list box and i want to get its values in jquery please tel me how