I am using the Harvest Chosen jQuery plugin like so:
$(".chzn_b").chosen();
It allows me to select multiple options from my select but sometimes when i land on the page i want to have some stuff preselected.
How do i do that ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You have to define the selected attribute on the option tag inside that select http://www.w3schools.com/tags/att_option_selected.asp
Then Chosen should set that as the selected value.