function averageNumberOfEmployeesCalculator(element){
$('.employees-calculator').remove();
var calculator = $('<div class="employees-calculator"><table width="100%" border="0" cellspacing="0" cellpadding="5"><caption>Average Number of Employees Calculator</caption> <tbody> <tr> <th width="20">1</th> <td><strong><em>Add up</em></strong> and then enter the number of employees your establishment paid <strong>IN EACH PAY PERIOD</strong> during the year.Be sure toinclude all employees: full-time, part-time, temporary, seasonal, salaried, and hourly.</td><td width="120">The total number of employees paid in all pay periods throughout the year=</td><td width="60"><input type="number" name="employees-calculator-1a" value="0"/></td></tr><tr> <th>2</th> <td><strong><em>Count</em></strong> and then enter the number of pay periods yourestablishment had during the year. Be sure to include any pay periods when you had no employees. For example, enter 26 if you have biweekly pay periods or 52 if you have weekly pay periods.</td><td>The number of pay periods during the year=</td><td><input type="number" name="employees-calculator-2a" value="0"/></td></tr><tr> <th>3</th> <td><strong><em>Divide</em></strong> the number of employees by the number of pay periods. (auto-calculated)</td><td><table border="0" cellspacing="3" cellpadding="0"> <tbody><tr> <td><input type="number" name="employees-calculator-1b" readonly value="0"/></td><td>/</td><td><input type="number" name="employees-calculator-2b" readonly value="0"/></td><td>=</td></tr></tbody></table></td><td><input type="number" name="employees-calculator-3" readonly value="0"/></td></tr><tr> <th>4</th> <td>Round the answer to the next highest whole number. (auto-calculated)</td><td>The number rounded=</td><td><input type="number" name="employees-calculator-4" readonly value="0"/></td></tr></tbody></table><button type="button">Apply value to FORM 300A</button></div>');
calculator.find('button').click(function(){
...
Please Whitelist JSFiddle in your content blocker.
Help keep JSFiddle free for always by one of two ways:
Whitelist JSFiddle in your content blocker (two clicks)
Go PRO and get access to additional PRO features →
Join the 4+ million users, and keep the JSFiddle dream alive.
Ad-free
All ads in the editor and listing pages are turned completely off.
Use pre-released features
You get to try and use features (like the Palette Color Generator) months before everyone else.
Fiddle collections
Sort and categorize your Fiddles into multiple collections.
Private collections and fiddles
You can make as many Private Fiddles, and Private Collections as you wish!
Console
Debug your Fiddle with a minimal built-in JavaScript console.