Common problem faced by developers, how to remove last character from a string using jQuery, Here I am going to explain the solution with an example. var str = ‘123-4’; alert(str.slice(0, -1));
Category: jQuery
How to Create a Scroll To Top With Some Delay Using JavaScript ?
Here I am sharing the code for scrolling a page from bottom to top with some delay. You can also use that to reach or show first error element box in your specified form. Show First Scrolled Error Element Box on Submit :- you can use below jQuery code to scroll on the first error element box on submit – $(‘html, body’).animate({ scrollTop: $(validator.errorList[0].element).offset().top-300 }, 2000); Above code will work for the form group on submit. for an example below – $(“#submit”).on(‘click’, function () { var validator = $(“#form”).validate({ rules:…
jQuery Core – All Version List || jQuery Version
Here I am sharing jQuery version list. jQuery Core & Migrate – Git Builds UNSTABLE, NOT FOR PRODUCTION jQuery git build – uncompressed, minified jQuery 2.x git build – uncompressed, minified jQuery 1.x git build – uncompressed, minified jQuery Migrate git build – uncompressed, minified jQuery Core – All 3.x Versions jQuery Core 3.3.1 – uncompressed, minified, slim, slim minified jQuery Core 3.3.0 – uncompressed, minified, slim, slim minified jQuery Core 3.2.1 – uncompressed, minified, slim, slim minified jQuery Core 3.2.0 – uncompressed, minified, slim, slim minified jQuery Core 3.1.1 – uncompressed, minified, slim, slim minified jQuery Core 3.1.0 – uncompressed, minified, slim, slim minified jQuery Core 3.0.0 – uncompressed, minified, slim, slim minified jQuery Core – All 2.x Versions jQuery Core 2.2.4 – uncompressed, minified jQuery Core…