Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let textStyle = $('#format-text input');
- $('#bold-btn').on('click', function(){
- //textStyle.css('font-weight','700');
- if($("#format-text input").css('font-weight') == '400'){
- $("#format-text input").css('font-weight','700')
- }
- else if ($("#format-text input").css('font-weight') == '700'){
- $("#format-text input").css('font-weight','400')
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement