$(‘#add_more’).click(function() { $(this).before($(“<div/>”, {id: ‘filediv’,style:”}).fadeIn(‘slow’).append( $(“<input/>”, {name: ‘file[]’, type: ‘file’, id: ‘file’,class:”btn btn-warning btn-big”}), $(“<br/><br/>”) )); });
Read MoreMonth: April 2017
Google maps in php
<script src=”http://maps.googleapis.com/maps/api/js?key=AIzaSyCHB-46cTJI56JgIi6kyKfG4CW7l5BclF4&sensor=false&libraries=places“></script> <script src=”js/jquery.geocomplete.min.js”></script> <script> $(function () { $(“#location”).geocomplete({ details: “.geo-details”, …
Read MoreCk editor options
Description: <textarea cols=”80″ id=”editor_ckxhr” name=”description” placeholder=”Enter Description” id=”description” rows=”5″></textarea> <script type=”text/javascript”> CKEDITOR.replace(‘editor_ckxhr’, …
Read MoreIf home page then do some operation
<?php // If it is home page then do some operation:: $pathSlash = explode(“/”,$_SERVER[‘PHP_SELF’]); if(end($pathSlash)==”” || end($pathSlash)==”index.php”) { //It is home page //Do …
Read MoreClose current window and Reload parent window
Close current window and Reload parent window:: <script type=”text/javascript”> window.close(); window.opener.location.reload(); </script> This script works only if the new window is opened …
Read MoreHtaccess help
For htaccess help HostGator support:: http://support.hostgator.com/articles/apache-mod_rewrite-and-examples
Read MoreCLOSE POP UP WINDOW & RELOAD PARENT WINDOW
<script type=”text/javascript”> window.close(); window.opener.location.reload(); </script>
Read MoreGetting all category arranged in php
<?php $categories = getTableData(“categories”, “*”, “pid=0 LIMIT 2”,TRUE); //Getting sub category under this main category:: foreach($categories as $key => &$val) { $val[‘sub’] = getTableData( “categories”,”*”,”pid={$val[‘id’]}”, …
Read More