0

I am using a Jquery UI multiselect box.

If I access the box like this

category = $("#edit_category").val();

I see that it has a value already in there. I want this value to be visible from the beginning. I read somewhere that it'd be useful to set the "option tag" of the multiselect from "selected" to "selected"... I'm not sure what this means.

thoughts?

2 Answers 2

1

I read somewhere that it'd be useful to set the "option tag" of the multiselect from "selected" to "selected"... I'm not sure what this means.

it means that it would be the default selected option when the page loads

0

ah this helped me!

http://calisza.wordpress.com/2009/03/29/6-jquery-snippets-you-can-use-to-manipulate-select-inputs/#comment-652

2 $('#selectList :selected').text();

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.