$("#plus_button").bind('click',function (e) { // Get all elements of @class "resizable" $(".resizable").each(function () { var resizableClass = $(this ).attr("class"); // Strip out "resizable" from class to get the size value var sizeValue = resizableClass.replace(/ resizable/, ''); // Extract size value formulaSizeClassPrefix = sizeValue.split('_')[0]; existingFormulaSize = Number(sizeValue.split ('_')[1]); newFormulaSize = existingFormulaSize + 1; if (newFormulaSize > 5) { alert("Formulas already displayed at maximum size"); // Exit jQuery each() loop return false ; } else { newFormulaSizeClass = formulaSizeClassPrefix + '_' + String (newFormulaSize); // Reconstruct new @class attribute and update element newClassAttribute = newFormulaSizeClass + " resizable"; $(this ).attr('class', newClassAttribute); } }); }); $("#minus_button").bind('click',function (e) { // Get all elements of @class "resizable" $(".resizable").each(function () { var resizableClass = $(this ).attr("class"); // Strip out

Comments

Popular posts from this blog

Full xxx video download 2017

BET9JA PREDICTION FOR APRIL 2017

BET9JA PREDICTION FOR 15 16 APRIL 2017