JQuery.show ('slide', {direction: 'right'}) does not work, but .show ('slide')

I insert a menu selection at the top of the top menu (ListItems) and using

$('#newMenuItem').show('slide');

successfully. However, I didn’t like the way it slid from the upper left corner, so I changed it to

$('#newMenuItem').show('slide', { direction: 'right' });

Unfortunately, as soon as I change it, I no longer receive a new item. In fact, no code below the line above is executed anymore.

Is there an obvious reason why this will not work? I am using jquery-1.7.1 that comes with Visual Studio 2012.

+5
source share
2 answers

jQuery, jQuery UI; jQuery UI ( jQuery) , . . .

+14

$('#newMenuItem').slideDown();

+1

All Articles