[SOLVED] Script doesn't work since jQuery 1.6
Hello, I would like to update my website by using the newest jQuery (1.8.3).
The code below works with jQuery before 1.6. Could you please help me to update my code ?
- jQuery.noConflict();
- jQuery(document).ready(function($) {
- $('[class^=toggle]').hide();
- $('[class^=link]').click(function() {
- var $this = $(this);
- var x = $this.attr("className");
- $('.toggle-' + x).toggle(400);
- return false;
- });
- });
Thank you in advance.