Displaying Current Font While Loading Custom Fonts
New here? Learn about Bountify and follow @bountify to get notified of new bounties! x

I'm following the Loading custom fonts page to incorporate a few Google Fonts into my application. Currently I'm able to change fonts, but I'd like to have the dropdown read the currently selected object's font, so that if I decide to change the second text, I'm not forced to deselect the original text's font (please check out this fiddle to see what I mean). In other words, it displays the default and then the last used font.

How might I achieve this? Thanks.

awarded to quillford

Crowdsource coding tasks.

1 Solution

Winning solution

I added a few lines to the fiddle. whenever there's a click on the page, the selected option will now update.

This looks great! Thank you.
sharper 30 days ago