Functions

jQuery(document).ready(function($) { test(); }); function testMethod(el, fontsize) { $(el).css({ fontSize: fontsize }); } function test() { testMethod("h1", 40); testMethod("h2", 40); testMethod("p", 20); }
Proper way to write js functions.

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.