[jQuery] Re: how can i set the attribute of an item in a select box to selected?

2009-06-24 Thread Matthew
if you are using unique id's on each multiple select you could have a check box that calls a function when checked that will iterate through all of the options in the select and add the selected attribute. You should look into JQuery's each()... it easily iterates through an array where $("#select

[jQuery] Re: how can i set the attribute of an item in a select box to selected?

2009-06-24 Thread shaded
ravi, matthew, thanks for the responses, and i totally agree that this group is huge. Google could have added a few more features to their groips app. this is very barebones:( here is what im doing, i've been using this (http://remysharp.com/2007/09/18/auto-populate- multiple-select-boxes/) plu

[jQuery] Re: how can i set the attribute of an item in a select box to selected?

2009-06-24 Thread Matthew
$("select option).attr("selected","selected"); if your option or select tag has an id use that: $("#select #option").attr("selected","selected"); now depending on what you are trying to do there are different ways to get an array of all the options in a select tag and to determine what option s

[jQuery] Re: how can i set the attribute of an item in a select box to selected?

2009-06-24 Thread ravi
On Jun 24, 2009, at 11:10 AM, shaded wrote: ok , ive posted about 6 questions in this group since i joined and not one has answered. not even an attempt. I've seen question, both easier and more difficult that mine being answered. Am i asking in the wrong way? Is there something im forgetting

[jQuery] Re: how can i set the attribute of an item in a select box to selected?

2009-06-24 Thread shaded
ok , ive posted about 6 questions in this group since i joined and not one has answered. not even an attempt. I've seen question, both easier and more difficult that mine being answered. Am i asking in the wrong way? Is there something im forgetting to include? what can i do to make my question