<script> $(document).ready(function() { $(document).on(“click”, “._SP12_SHOWMORE”, function() { var SMJX_SRCH_DPERPG = 5; var SMJX_SMR_SUC = $(“._SP12_SHOWMORE”).attr(‘data-srch-uc’); var SMJX_SMR_LST_CNT = $(“._SP12_SHOWMORE”).attr(‘data-lstcnt’); var SMJX_SRCH_ON …
Read MoreJQuery
How to call ajax request one after another in php
<script> $(document).ready(function() { $(document).on(“click”, “._SP12_SHOWMORE”, function() { var datastring = {‘SRCON’:SMJX_ON, ‘LCNT’:SMJX_LST_CNT,}; // FIRST AJAX REQUEST:: $.ajax({ url:'<?php echo base_url().”search-rd”;?>’, type: …
Read MoreHow to check if the request is an AJAX request with PHP
if (!empty($_SERVER[‘HTTP_X_REQUESTED_WITH’]) && strtolower($_SERVER[‘HTTP_X_REQUESTED_WITH’]) == ‘xmlhttprequest’ ) { // This is ajax request. // write your code here. }
Read Morepagination with scroll using ajax
HTML PAGE IS HERE: IN CODEIGNITER:: <!DOCTYPE html> <html lang=”en”> <head> <meta charset=”utf-8″> <title>Show More Testing</title> <style type=”text/css”> ::selection{ background-color: #E13300; color: white; } ::moz-selection{ …
Read MoreDisable ctrl+c,ctrl+u and right click
Disable in the whole document from copy,ctrl+u and right click. <!– Disable ctrl+u & ctrl+c and prevent Right Click –> <script type=”text/javascript” src=”http://ajax.microsoft.com/ajax/jquery/jquery-1.4.2.min.js”></script> <script type=”text/javascript”> …
Read MoreHow to avoid conflicts of jquery library
Use This Code To Avoid Conflicts Of Jquery Library Files.. $.noConflict(); As Example: var jq = $.noConflict(); jq(document).ready(function(){ jq(“button”).click(function(){ jq(“p”).text(“jQuery is still working!”); …
Read Morehow to get direct child of an element in jquery
Get the direct children of an element UL. $(document).ready(function() { $(“ul”).children().css({“color”: “red”, “border”: “2px solid blue”}); });
Read MoreFind an element using jquery
finds tag/class/id the table/page Using Jquery <script> $(document).ready(function() { $(“.table”).find(“span”).css({“color”:”blue”}); }); </script>
Read MoreHow to find an element or tag using Jquery
The HTML is here: <table class=”table”> <caption>My testing Table</caption> <tr> <td class=””><span>data-1</span></td> <td>data-2</td> </tr> <tr> <td>data-3</td> <td><span>data-4</span></td> </tr> </table> The Script is: // ONLINE JQUERY …
Read Moreon check select all checkboxs in jquery
HTML Code is <div> Select All <input type=”checkbox” name=”select_all” id=”select_all”> </div> <div> <table id=”Optiontable”> <tr> <td> <input type=”checkbox” name=”checkRow” id=”checkRow” value””> Select-1 </td> </tr> <tr> …
Read More