Skip to content

JQUERY

jQuery-AJAX-Autocomplete

jQuery AJAX Autocomplete – Country Example

  • by

Autocomplete feature is used to provide the auto suggestion for users while entering input. In this tutorial, we are going to suggest country names for the users based on the keyword they entered into the input field by using jQuery AJAX.

jQuery Autocomplete function is called on the key-up event of the input field. This function requests PHP for the list of countries via AJAX by sending the value of the input field. In PHP, it reads country names from the database that starts with the keyword entered by the user.

Read More »jQuery AJAX Autocomplete – Country Example

How do I show some particular div after scroll 100 px?

  • by

You can achieve this by using javascript pageYOffset property to show the div after 100px of scroll.
The pageXOffset and pageYOffset properties returns the pixels the current document has been scrolled from the upper left corner of the window, horizontally and vertically.
The pageXOffset and pageYOffset properties are equal to the scrollX and scrollY properties. These properties are read-only.
Let us see the code:

 Read More »How do I show some particular div after scroll 100 px?