i using jquery 1.7 in project. upgraded jquery 2.1.4.
the below code not working earlier older version working. toggle supported in 2.1.4 please let me know wrong in below code.
jquery('#show-hide-filter-text').toggle(function(){ jquery(this).text(hidetxt); jquery('#filterlistdiv').slidedown("medium"); }, function(){ jquery(this).text(showtxt); jquery('#filterlistdiv').slideup("medium"); });
this happening because toggle() method using part of event handling suite, , deprecated in version 1.8. instead use toggle() method part of effects suite. difference lies in set of arguments passed.
Comments
Post a Comment