Is it possible to configure a UITableView to allow multiple-selection?
Following property should work fine if you are developing app for iOS5.0+ self.tableView.allowsMultipleSelection = YES;
Following property should work fine if you are developing app for iOS5.0+ self.tableView.allowsMultipleSelection = YES;
According to the documentation you can try doing something like this: $(‘select’).append(‘<option>test</option>’); $(‘select’).trigger(‘liszt:updated’); As Tony stated in the comments below: “Starting with version 1.0 which the trigger is now “chosen:updated”. See harvesthq.github.io/chosen/#change-update-events”
Iterate through the loop using the value in a dynamic selector that utilizes the attribute selector. var values=”Test,Prof,Off”; $.each(values.split(“,”), function(i,e){ $(“#strings option[value=”” + e + “”]”).prop(“selected”, true); }); Working Example http://jsfiddle.net/McddQ/1/