How-to articles, tricks, and solutions about JQUERY

Ajax Upload image

To upload an image using Ajax, you can use the following steps:

create folder in laravel

In Laravel, you can create a new folder using the File facade's makeDirectory method.

How do I PHP-unserialize a jQuery-serialized form?

In PHP, you can use the unserialize function to unserialize a serialized string.

How do I return a proper success/error message for JQuery .ajax() using PHP?

To return a proper success/error message for jQuery.ajax() using PHP, you can do the following:

How to Add and Remove Multiple or Single Select Options using jQuery

Read this tutorial and learn how you can remove multiple options or a specific option in the select list using some interesting and useful jQuery methods.

How to Add the Marquee Effect without Using the Marquee Tag (with CSS, JavaScript and jQuery)

Learn the alternative ways of having continually scrolling text without using the obsolete <marquee> tag. See examples with CSS animations, JavaScript and jQuery.

How to Apply CSS Styles to Only the Half of a Word or Character?

Learn how to make a word or character have half style or triple style. Use only CSS to get the effect, or do it with the help of JavaScript and jQuery.

How to Auto-Hide a Placeholder Text on Focus with CSS and jQuery

The placeholder attribute describes the expected value of an input field. See how to auto-hide placeholder text on focus using HTML, CSS, and jQuery.

How to Center a <div> on the Screen Using jQuery

Read the tutorial and learn the jQuery method of centering the <div> element on the screen. Get a code snippet to add your script for centering the element.

How to Change Selected Value of a Drop-Down List Using jQuery

In this tutorial, you will read and learn about jQuery methods that are used to change the selected value of a drop-down list via its text description.

How to Change the Image Source Using jQuery

Read this tutorial which will provide you with useful information about the best and easy method that can be used to change the image source using jQuery.

How to Check a Radio Button with jQuery

Read the tutorial and learn the right way of checking a radio button with jQuery. Also, read how to handle with different versions of jQuery while checking.

How to Check and Uncheck Checkbox with JavaScript and jQuery

In this tutorial, you will read and learn about several JavaScript and jQuery methods for checking and unchecking a checkbox. Choose the best one for you.

How to Check if an Enter Key is Pressed with jQuery

Read this tutorial and learn the right method of detecting whether the user pressed the Enter key. The given method provides a cross browser compatibility.

How to Check if Element is Visible after Scrolling

Read the tutorial and find out one of the methods of checking whether the element is visible after scrolling with jQuery. Also, find about utility function.

How to Check if User Has Scrolled to the Bottom of the Page

Read this tutorial and learn information about jQuery method that is run for checking whether the user has scrolled to the bottom of the page or near to it.

How to Create a jQuery Ajax Post with PHP

Here, we will share with you how to create a jQuery Ajax post request with PHP. Just check out the examples and choose the one that suits your needs best.

How to Create Ajax Submit Form Using jQuery

This tutorial provides several methods of creating an Ajax submit form using jQuery easily. Read about the differences of the GET and POST HTTP methods.

How to Create Range Slider With HTML5 and jQuery

HTML5 range input type allows creating range sliders. Read the tutorial and learn a simple solution including a jQuery code to achieve the desired result!

How to Create Smooth Scrolling When Clicking an Anchor Link

Read the tutorial and learn information about the two jQuery and JavaScript solutions that are used to create smooth scrolling when clicking an anchor link.

How to Detect Escape Key Press Using jQuery

Read this tutorial and learn the two methods of detecting an escape key press using jQuery. Read about keyup and keydown event handler and see examples.

How to Detect Idle Time in JavaScript

Read this tutorial and learn useful information about the vanilla JavaScript and jQuery solutions that are used for detecting the idle time correctly.

How to Disable Text Selection, Copy, Cut, Paste and Right-click on a Web Page

Learn the ways of how to disable text selection highlighting, how to disable copy, cut and paste, how to disable right-click. See example with CSS, JavaScript and jQuery.

How to Distinguish Between Left and Right Mouse Click with jQuery

In this tutorial, you will read and learn useful information about the fastest method of distinguishing between left and right mouse click with jQuery.

How to Get the data-id Attribute

Read this tutorial and learn the right ways of getting the data-id attribute using jQuery two methods. Also, learn more information about the two methods.

1 2