<?php if($product_details[‘description’] != “”) { echo substr(strip_tags(html_entity_decode($product_details[‘description’])), 0, strrpos(substr(strip_tags(html_entity_decode($product_details[‘description’])), 0, 100), ‘ ‘)) . …
Read MoreMonth: February 2017
How to use data-tables using Jquery
<script type=”text/javascript” src=”//cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js“></script> <script type=”text/javascript”> $(document).ready(function(){ $(‘#order_table’).DataTable({ lengthMenu: [ [50, 100, 200, …
Read MoreReload Parent window From Child Window
Reload Parent window from pop-up child window:: window.opener.location.reload(false) https://developer.mozilla.org/en-US/docs/Web/API/Window
Read MoreGet all months name in php
$months = array(); $currentMonth = 0; //(int)date(‘m’); for ($x = $currentMonth; $x < $currentMonth + 12; $x++) …
Read MoreCheck Email Validation using JavaScript in php
function validateEmail(email) { var emailReg = /^([\w-\.]+@([\w-]+\.)+[\w-]{2,4})?$/; return emailReg.test(email); }
Read Moreopen popup using javascript
<button onclick=”myFunction()”>Try it</button> <script> function myFunction() { window.open(“popup_page.php”, “TEST POPUP”, “width=400, height=400”); //alert(window.parent.location); } </script>
Read MoreCalculate percentage using jQuery in php
<script type=”text/javascript”> function calpercentge(e) { var pcnt=6; var nprice=0; var spval= e.value; …
Read MoreSELECT ALL CHECK BOX USING JAVASCRIPT
function select_all2() { for (var i=0;i<document.form3.elements.length;i++) { var e =document. form3.elements[i]; if ((e.name != ‘check_all’) && (e.type==’checkbox’)) …
Read More