i m w8ing for your reply
On Jul 1, 10:30 am, naz <s.na...@gmail.com> wrote: > i have HTMl code like this > <select name="itemsToAdd" id="right" size="8" multiple="multiple"> > </select> > > 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 <morni...@gmail.com> wrote: > > > > > Got some HTML to show of the <select> box? > > > if you have > > > <select id="right" mulitple="multiple"> > > <option value="1">One</option> > > <option value="2" selected="selected">Two</option> > > <option value="3" selected="selected">Three</option> > > </select> > > > 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 <s.na...@gmail.com> wrote: > > > > 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 tel me what to do > > > > On Jun 30, 3:12 pm, Charlie <charlie...@gmail.com> wrote: > > > > > 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 can i do that i m writing $('#right').val(); but this > > > > is giving me null plpease tell me how can i do that i need help as soon > > > > as possible thx to all persons which reply to my questions- Hide quoted > > > > text - > > > - Show quoted text -- Hide quoted text - > > - Show quoted text -