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

Sign up to request clarification or add additional context in comments.

Comments

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();

Comments

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.