I am creating a scroller to select data in a string with blanks e.g.:
mobiscroll.scroller("#idOfElement", {
wheels: [
{
data: ["Albert Einstein","Marie Curie","Otto Hahn"]
}
]
});
When the scrooler is initilized users can mark there selction. I can also retrieve and save this selction.
However, when I try to set the value like this
mobiscroll.instances.idOfElement.setVal("Marie Curie", true);
only the first value in the data (in this example “Albert Einstein”) is selected. Whithout the blanks in the string the correct data is selected.
Is there a trick to e.g. mask the blank so the correct value is selected?
I am using mobiscroll 4.10.7 with javascript