It is very simple Javascript : <script type=”text/javascript”> setTimeout(function(){ window.location.reload(); }, 5000); </script> Jquery : $(‘#id’).click(function() { location.reload(); });
Continue readingCategory: Jquery
Jquery
Jquery addClass and removeClass
Just see below code $(“.product-info”).click(function(){ if(!$(this).hasClass(“activeBar”)) { $(this).addClass(“activeBar”); } else { $(this).removeClass(“activeBar”); } }); Another example ; $(“.product-info”).click(function(){ $(this).toggleClass(“activeBar”); });
Continue readingAuto width and height in Jquery modal
Just follow bellow code $(‘#your_id).dialog( { modal: true, height: ‘auto’, width: ‘auto’ }); Hope it will help you.
Continue readingCan not work Cancel button in Jquery fancybox
Can not work Cancel button in Jquery fancybox parent.jQuery.fancybox.close() is a function add to Onclick. Hope it will work. <input
Continue readingJquery Second Step
<!doctype html> <html> <head> <meta charset=utf-8> <title>Second Step of Jquery</title> <script src=”https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js”></script> <style> .second_step { font-weight: bold; color: green; font-size:
Continue readingJquery Basic Introduction
An open source JavaScript library that simplifies the interaction between HTML and JavaScript Created by John Resig in 2005, released
Continue readingJquery Tutorial First Step
<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”> <html xmlns=”http://www.w3.org/1999/xhtml”> <head> <title>First Step of Jquery</title> <style> ul li { color:
Continue reading