use JSON.parse() and JSON.stringify() in JavaScript

How to use JSON.parse() and JSON.stringfy() in JavaScript JSON.parse() Its convert JSON String to JavaScript Object. Its help to convert text into JavaScript Object. Use of this method convert JSON string into object and access single values using the dot. So at last its helps to convert JSON String to JS Object. When receiving data […]

Create a Unique ID by JavaScript Function and Store into Variable

  Create Unique ID by JavaScript   There are different way to generate Unique ID or unique identifier number in JS. Its very useful and use in may cases rendering list or identify recordsd in database. <script type=”text/javascript”> function createUniqueId(){       const head = Date.now().toString(36);         const tail = Math.random().toString(36).substr(2); […]

How to get value store in cookie in browser by use simply jQuery

Get Value store Cookie into Chrome or other Web Browser with JQuery Easily. Below the code, describe how to store a specified cookie value into a variable and use it for further use. Cookie ‘_ga’ store in web browsers such as Chrome or Firefox, with using the jQuery get the value of cookie and store […]

How to add bootstrap CSS and JQuery after page load

Add Bootstrap library files after window load Need to load jQuery and CSS bootstrap file after load page for optimize page speed and reduce the load time of page add both files after page open in the window. After loading files in the window will helps to reduce the loading time and increase page speed […]

How to get cookie value when $.cookie error come in console

How to solve error comes when trying to use cookie value store in the browser.   when trying to use a cookie value which stores in the browser by javascript and error come in browser console $.cookie is not define, so add jquery cookie library in HTML code. The library is mention below.   Include […]

Upload multiple files with Ajax and Move to upload by PHP with create different folder

Below the code, explain that upload multiples files by jQuery Ajax and move files using Form Data to created different folders by PHP  move_uploaded_file function. Created multiple folders by time function and create random numbers for the rand function. HTML code for creating form input file and button to upload files. HTML Code : <div […]

Change ::before ::after Pseudo Element content using in div by jQuery

How to manipulate and change the content of selected DIV by jQuery.   Manipulating and change the content of DIV, SPAN by used CSS pseudo-element ::before and ::after. Passed content to pseudo element with data attributes and use jQuery to change and manipulate.   HTML Code <body> <div id=”uploadFile”> <div class=”uplidFileContent” data-before=”Pseudo Before Content Click […]

Get Previous URL or Browsered Visited Page URL by JavaScript

How to get the previous URL by using javascript.  For the below code, I store the previous pages URL into a variable and console them. I store the history pages URL into the local storage variable.   <script type=”text/javascript”> var getBrowswerHistory = history.length; var getLastLocation = []; var getLocationPath = location.href; getLastLocation.push(getLocationPath); var broswerHistoryArray = […]

JSON What It is, Why Use it, Data Types & Methods

What is JSON? JSON stands for JavaScript Object Notation is an open stand file format for sharing data. Web developers easily write and understand the JSON file data. It helps exchange data between the browser(client) and server, that time JSON data must be in text based on key-value pairs. It use the .json extension when […]

Get Latitude and Longitude Coods By jQuery and HTML 5 Geo-location API

Get Current Latitude and Longitude Coods By jQuery and HTML5 Geolocation API. HTML5 Geolocation is used to get the geographical position of the user. When you get the visitor Latitude and Longitude, you can easily get the visitor country, state, city, and ZIP by Google Map. Below the code for getting website user coords of […]