Serialize form data using jQuery

Serialize form data using jQuery helps in getting form element data easy. function getFormData(form) { var rawJson = form.serializeArray(); var model = {}; $.map(rawJson, function (n, i) { model[n['name']] = n['value']; }); return model; } Now use model object to...
Read More ⟶

How to connect android debugging wireless without data cable

Hello Guys, In this article I am going to show you how to connect android debugging wireless without data cable. Many time while debugging app or sites from devices gives us trouble while debugging from android devices. We need to use data cable which is very boring...
Read More ⟶

Javascript group object by its properties

In this small article I will show you how you can easily group the object by its properties. Below is the function code to group the object by its properties. Common = { _groupBy:function(list,props) { return list.reduce((a, b) => {(a[b[props]] = a[b[props]] ||...
Read More ⟶

Easy angular trick to disable and enable button while input box empty or populate

In this another small article I will show you how you simply enable and disabled the input button while you type. To perform this simple trick we will hide the button, if the input box is empty similarly if the input box is filled with any keyword the button will not...
Read More ⟶

Do you know the difference between var, let and const?

Hey guys, in this another small article I am going to explain the key difference between var, let and const. Now the question is do you know the difference between var, let and const? ..really? Do you even know what let and const can do to improve your code? If you...
Read More ⟶

Remove duplicate array via vanilla JavaScript

In this, another small tutorial I am going to show you how you simply remove the duplicate array from any array given. This is a very simple trick, so you don’t require any other plugin or framework. I am going to show you how to remove duplicate array via vanilla...
Read More ⟶

TODO application with Javascript and localstorage

Todo application with Javascript and localstorage. I have build this small application using vanilla JavaScript. Demo link Git Hub link Special thank to ID generator code from codepen. I have used the Id generator code from above codepen url, that helped...
Read More ⟶

Convert HTML entity code script

Sometimes when dealing with API response we get HTML entity tag as well. For eg: In order to fix this kind of issue we can use a simple javascript snippet. function convertHTMLEntity(text){ const span = document.createElement('span'); return text...
Read More ⟶

wordpress nav menu arguments

WordPress nav menu arguments <?php $defaults = array( 'theme_location' => '', 'menu' => '', 'container' => 'div', 'container_class' => '', 'container_id' => '', 'menu_class' => 'menu', 'menu_id' =>...
Read More ⟶

Simple Query post wordpress

A simple query post wordpress to display post in any format you desire. Basically sometime you may need to call some limited number of post with specific category in certain place of your home page or any other template. This will require you to do some hand coding of...
Read More ⟶