How can we add change font size using jquery?



How can we add change font size using jquery?..

Answer / Naeem Akhatar

To change the font size of an HTML element using jQuery, you can modify its CSS style. Use the following code: `$(selector).css('font-size', 'new-font-size');` where `selector` is the ID or class of the target element and `new-font-size` is the desired font size (e.g., `14px`, `2em`, etc.)

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More jQuery Interview Questions

Explain jquery filter?

1 Answers  


Why do we need to go for JQuery?

1 Answers  


How to check data type of any variable in jquery? : jquery mobile

1 Answers  


What to do to select element having a particular class (".selected")? : jquery mobile

1 Answers  


How To Use Ajax In Jquery?

1 Answers  


What is the struts2 jquery plugin and its advantages.

1 Answers  


Consider a scenario where things can be done easily with javascript, would you still prefer jQuery?

1 Answers  


How to select class in jquery?

1 Answers  


Why do we use jQuery?

1 Answers  


What is cdn? Explain

1 Answers  


How can you add a jquery library in your project?

1 Answers  


What are the the two types of cdns?

1 Answers  


Categories