w3hello.com logo
Home PHP C# C++ Android Java Javascript Python IOS SQL HTML videos Categories
dynamically change fontfamily and fontsize

Aside from not including jQuery in the example, you had a typo.

$('.changeMe') should be $('.changeme')

UPDATED EXAMPLE HERE

$("#font").change(function() {
    $('.changeme').css("font-family", $(this).val());

});

$("#size").change(function() {
    $('.changeme').css("font-size", $(this).val() + "px");
});




© Copyright 2018 w3hello.com Publishing Limited. All rights reserved.