I am disappointed that simple and existing JavaScript codes that works for v10 is now not working for the new v11 responsive "modern" designer.
Can someone help to revise these? As much help appreciated.
Title, that displays name of the form in browser:
// Set page Bookmark title $('title').text("Real Estate Tax Relief Application")
Phone and SSN masking works for forms v10.
I also need help to find out the " 'https://mySite.com/Forms/js/jquery.mask.min.js'" address, where should I look for it?
$(document).ready(function() { $.getScript( 'https://mySite.com/Forms/js/jquery.mask.min.js' , function () { // re-format Phone ------------------------------- $(".rePhone input").mask("(999) 999-9999"); // re-format SSN --------------------------------- $(".reSSN input").mask("999-99-9999"); }); // -- end of getScript -- }); // --- end of document.ready --
Proper capitalization:
// To Force proper capitalization $('.capitalizeMe input').on('change',function() { var orig = $(this).val(); var breakSpaces = orig.split(' '); var newWords = new Array(); $.each(breakSpaces,function(index,word) { newWords.push(word.charAt(0).toUpperCase() + word.slice(1)); }); $(this).val(newWords.join(' ')); }); // -- end of capitalizeMe --
Restrict negative numbers
// Restrict negative numbers $('.limitedCurrency input').attr('min',0);