Loading data remotely in Select2 with AJAX

Select2 is a jQuery plugin that extends the functionality of a simple HTML drop-down element by allowing to search the list, add the image with options, navigate to the option with arrow keys, etc.

It comes with AJAX support which you can call it in the same way as $.ajax in jQuery. This allows you to fetch options from the server when the user clicks on the select element or searches for a value in the search box.

In this tutorial, I show how you load MySQL database data remotely in Select2 with AJAX.

Loading data remotely in Select2 with AJAX

Read more

Multiple files upload with AngularJS and PHP

You can allow multiple file selections by creating more than one file element but you can easily do this with just a single file element.

It consumes less space and easy to handle but for this, you need to customize the element.

In this tutorial, I am using AngularJS and PHP to upload multiple files to the servers.

I am creating a custom directive to handle file selection in AngularJS.

Multiple files upload with AngularJS and PHP

Read more