开发者

Increase font size at button click

开发者 https://www.devze.com 2023-03-06 21:03 出处:网络
Ihave a tableand in the end there is a button, when click on button text size in the rows of th开发者_如何学Goe table should be double in size. Sorry I am new to JQuery so my question seems to be sill

I have a table and in the end there is a button, when click on button text size in the rows of th开发者_如何学Goe table should be double in size. Sorry I am new to JQuery so my question seems to be silly.


If your page has only one table then try this

$(document).ready(function(){
  $("button").click(function(){
    $("tr").css("font-size","200%");
  });
});

Here tr is the table row and 200% means double text size

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号