how to filter a multilevel menu with a search input

Filter a multilevel menu with a search input Mostly you can use select2 js for drop down which are basically use html select  tag, but sometime we need same functionality on ul -li...

Excluding directory when making a .tar on Linux

Exclude directory while making tar tar command basically used on Linux to compress/uncompress  any folder. Normally if we want to make a tar of whole folder then we can use follow...

Concatenate all values of a column in mysql

Mysql group concatenate select to string In select query if you want to concatenate all values of a column(all cells) in a single string with a separator. Then you can use a pre...

php pass session to new window

Whenever we open new window with jQuery or JavaScript often it will clear all old session. For example you have a dashboard screen after user login and here have a link to open new...

Jquery run code after .each() loop

If we have list of item or array of response and running .each() to parse them. After finishing loop we want to execute some code or any other function then we can use simple loop...

Mysql match first n characters

Many time we have a series of number in rows and we want to match only first 4 or 5 numbers in that row then we can use mysql inbuilt function. For example I have a doctor table...

How to add extra data with ajax serialize form

In normal Ajax post we send form in serialize way, but suppose you want to send some extra value to you php page then you can do as below. data: $('#youForm).serialize() +...

jquery autocomplete highlight match

Highlight jQuery Autocomplete results that match the text already typed I am assuming that you already implemented jQuery Autocomplete . Now you want to just highlight the part of...

Php Apache Solr executing query using eDisMax

Solr edismax boost query Before starting keep in mind that SolrDisMaxQuery class was not part of the 2.0.0 release. But still you can download the current master branch from...

Google map on address to geo code

Many time we know only address don’t have coordinates or latitude and longitude. In such case we can use Google geo coder part . We have to pass only physical address and on...