Welcome To Snipplr


Everyone's Recent jQuery Snippets



« Prev 1 2 3 4 5 ... 31
  1. FAV

    Hide header, when news are empty

    Hide parent element, when child element has a specific class. In this case: child element = .no-news-found parent element = .csc-default (= content element containing the news plugin with header)
    jQuery 6 views posted 2 years ago by xtine777
  2. FAV

    Get all values from form and send it to a page via Ajax

    Here’s a super handy snippet that I use very often. It works very simply: once the user clicks on #submit, the data from #form is serialized and sent to a remote page using the POST method.
    jQuery 19 views posted 2 years ago by catswhocode
  3. FAV

    Add IE interenet explorer class name to body

    Use it to detect old browser, when your client still use an old browser!
    jQuery 17 views posted 2 years ago by ginoplusio
  4. FAV

    Switch between text on button every second

    Switch between text on button every second
    jQuery 8 views posted 3 years ago by envane21
  5. FAV

    Counter from 0 to number

    Counter from 0 to number
    jQuery 10 views posted 3 years ago by envane21
  6. FAV

    Loop between images on hover

    Loop between images on hover
    jQuery 15 views posted 3 years ago by envane21
  7. FAV

    Loop between images

    Endless loop between 3 images
    jQuery 9 views posted 4 years ago by envane21
  8. FAV

    change value of button with jquery

    change <span> value of button with jquery
    jQuery 13 views posted 4 years ago by envane21
  9. FAV

    jQuery, how to start

    IIFE - Immediately Invoked Function Expression. http://gregfranko.com/jquery-best-practices/#/7 http://gregfranko.com/jquery-best-practices/#/8
    jQuery 16 views posted 4 years ago by Waltem
  10. FAV

    Best Jquery Declaration

    JQUERY READY EVENT BEST PRACTICE
    jQuery 10 views posted 4 years ago by SmellWing
  11. FAV

    Responsive jQuery

    The basic structure of making a page responsive
    jQuery 9 views posted 4 years ago by envane21
  12. FAV

    Simple Left - Right Animation

    A simple left-right animation
    jQuery 8 views posted 4 years ago by envane21
  13. FAV

    Make an element flash

    Add class .green to class .payment-container and make it flash every 3 seconds
    jQuery 9 views posted 4 years ago by envane21
  14. FAV

    Foundation Submit function

    Submit function for Foundation framework
    jQuery 7 views posted 4 years ago by envane21
  15. FAV

    Automatic Scroll Up

    Used to automatically scroll up the page so that it is focused on user entry (mobile devices)
    jQuery 5 views posted 4 years ago by envane21
  16. FAV

    How to add a simple jQuery script to WordPress

    First you need to write your script. In your theme folder create a folder called something like 'js'. Create a file in that folder for your javascript. E.g. your-script.js. Add your jQuery script to that file (you don't need <script> tags in a .js fi...
    jQuery 16 views posted 4 years ago by designermedia
  17. FAV

    php + jquery chat

    durr
    jQuery 15 views posted 4 years ago by olesla
  18. FAV

    simple custom checkboxes

    This is a simple way to make custom checkboxes in jQuery.
    jQuery 13 views posted 4 years ago by del4y
  19. FAV

    Kill/Remove/Hide a LeadPages ExitBox on a single page

    Useful when using a template or Wordpress and the LeadPages code is called on every page and there is a single page you don't want the fancy exit marketing signup form to appear. The LeadBox external code has a boolean variable called 'safetyCheck...
    jQuery 9 views posted 4 years ago by mountainash
  20. FAV

    jQuery: Check if the zip code is in an array of zips

    Check if the user input zip code is in an array.
    jQuery 16 views posted 5 years ago by devstori
  21. FAV

    Check if an Enter Key Is Pressed With jQuery

    To check if an “enter” key is pressed inside a textbox, just bind the keypress() to the textbox.
    jQuery 10 views posted 5 years ago by luhonghai
  22. FAV

    Detect Copy, Paste and Cut Behavior With jQuery

    To detect copy, paste and cut behavior, you just need to bind the corresponding event type.
    jQuery 20 views posted 5 years ago by luhonghai
  23. FAV

    Check if jQuery library is loaded

    To check if jQuery library is loaded, use the following JavaScript code
    jQuery 14 views posted 5 years ago by luhonghai
  24. FAV

    Page Loading Effects With jQuery

    JQuery is really a powerful and handy JavaScript library. The page or content loading effect is very easy to implement in jQuery. Here’s a example to make your web page content display a fade in page loading effect
    jQuery 12 views posted 5 years ago by luhonghai
  25. FAV

    jQuery alle Checkboxen eines Formulars markieren - Variante 1

    Bei dieser Variante lassen sich die Checkboxen nur einmal aktivieren/deaktivieren. Bei weiteren Versuchen wird zwar im Quelltext altiviert/deaktiviert, es ist aber auf der Seite nicht zu sehen.
    jQuery 12 views posted 5 years ago by ulfinger
  26. FAV

    jQuery hook for separation of concerns

    The purpose of this hook method is to help provide a separation of concerns between CSS and JavaScript. Typically class names are used to attach JavaScript to HTML elements. Using a separate data-hook attribute helps to protect the scripting from...
    jQuery 10 views posted 5 years ago by pmw57
  27. FAV

    jQuery UI input autocomplete mit Datenbank

    Mit dem php-Script innerhalb der Seite wird aus der SQL-Datenbank ein Javascript-Array zusammengestellt. Darauf greift das autocomplete-Widget zu.
    jQuery 15 views posted 5 years ago by ulfinger
  28. FAV

    Check if one checkbox is checked (from a list, a table...)

    Vérifie si une checkbox a été cochée
    jQuery 10 views posted 5 years ago by Igeco
  29. FAV

    QuickNote jQuery Plugin

    Please visit http://pantuts.com/2014/09/21/quicknote-jquery-plugin/ for other included files and demos. Thanks
    jQuery 12 views posted 5 years ago by pantuts
  30. FAV

    Numbers only in an input field

    Méthode n'autorisant que les nombres (positifs/négatifs/décimaux avec virgules ou points) dans un champ
    jQuery 13 views posted 5 years ago by Igeco
« Prev 1 2 3 4 5 ... 31