Skip to content

Instantly share code, notes, and snippets.

@AndreaBarghigiani
Created June 21, 2015 18:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AndreaBarghigiani/343b85bba55b2452fdeb to your computer and use it in GitHub Desktop.
Save AndreaBarghigiani/343b85bba55b2452fdeb to your computer and use it in GitHub Desktop.
Scrivere codice jQuery in WordPress
/****************************************
Da inserire all'interno del file /percorso/file.js
*****************************************/
jQuery(document).ready(function($) {
$("#toggle_it").click(function () { $(".to_toggle").toggle(1000); });
$(".to_toggle").show();
$("#toggle_it1").click(function () { $(".to_toggle1").toggle(1000); });
$(".to_toggle1").show();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment