Category: Jquery

Javascript and jquery

Javascript is scripting language while jquery is a JavaScript Library.

Simple Responsive Slider using jquery 0

Simple Responsive Slider using jquery

Simple Responsive Slider using jquery Here is a Simple Responsive Slider using jquery which works on every breakpoints. A very simple js/jquery which helps you to modify it according to your requirements. Download infinite_Image_Carousel-master

countdown timer in php 20

countdown timer in php

countdown timer in php $dateFormat = “d F Y — g:i a”; $targetDate = $futureDate;//Change the 25 to however many minutes you want to countdown change date in strtotime $actualDate = $date1; $secondsDiff =...

check canvas empty or not 2

check canvas empty or not

check canvas empty or not <“canvas11″ height=”200px” width=”200px”> <asp:Button runat=”server” ID=”btn1″ Text=”Save” OnClientClick=”checkcanvas();” /> <script type=”text/javascript”> function checkcanvas() { var i = isCanvasTransparent(); //i =true if canvas empty //i =false if canvas has image...

google translate selected language 0

google translate selected language

google translate selected language   A very common problem is to add google translator with already selected language which can be fix by the following code. function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: ‘en’, includedLanguages:...

call a function after a particular time period, 0

call a function after a particular time period,

call a function regularly call a function after a particular time period function getdata(){ var langu = jQuery(“.goog-te-combo”).html(‘<option value=””>Select Lanugage</option><option value=”en”>English</option><option value=”ja”>Japanese</option>’); jQuery(“.goog-te-gadget”).css({“margin-top”:”0px”}); intervaltime(); } </script> <script> function intervaltime(){ window.setInterval(function(){ getdata(); }, 5000); }...

validation of number in javascript 0

validation of number in javascript

validation of number in javascript function check_number() { var number=document.getElementById(“mobileno”).value; if(isNaN(number)) { alert(“number only”); return false; } else { return true; } }

jquery for refreshing only div content 0

jquery for refreshing only div content

jquery for refreshing only div content <script> jQuery(document).ready(function(){ jQuery(“#amot”).change(function() { //var file_name=”components/com_virtuemart/themes/default/templates/common/shopIndex.tpl.php”; jQuery(“#coupon-box”).load(“index.php #coupon-box”) return false; }); }); </script>