Set dropdown selector
-
I’m trying to combine multiple font samplers on one page, hide the dropdown selector for all but one fontsampler and link their fonts so that a change to the visible dropdown font selector changes any other hidden one. I’m using the fontsampler.event.activatefont event.
This allows me to use multiple single line data blocks that makes it easier to control line length per block. (so not ticked ‘allow line breaks’)
Hiding font selectors works ok but is there any ?CSS to deal with the unexpected blank row gap?$('.font-lister').not(':last').hide();
And I have got stuck setting the font selection for the to be hidden font sampler selectors. Things I have tried:
$(myevent.target).find(".font-lister option:selected").html('Arimo Bold') // now there are multiple fontsamplers I’m not sure this is the best way to select / change $(myevent.target).find(".font-lister option:selected").val(2) fl=$('.font-lister:eq(2)') / a better way to select? la=$('.label:eq(2)') // get reference to third fontsampler la.html('Arimo Bold') // changes dropdown for third fontsampler to Arimo Bold but doesn’t change the font in the data block.
Thanks
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Set dropdown selector’ is closed to new replies.