You do not need the shadow plugin for this. Use the following cross-browser CSS properties and place them in the .shadow class .shadow . Then, using the jquery addClass() function, you can add a shadow class to any element that should have a shadow.
CSS
.shadow{ -moz-box-shadow: 3px 3px 4px #ccc; -webkit-box-shadow: 3px 3px 4px #ccc; box-shadow: 3px 3px 4px #ccc; -ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#cccccc')"; filter: progid:DXImageTransform.Microsoft.Shadow(Strength = 4, Direction = 135, Color = '#cccccc'); }
JQuery
$('div').addClass('shadow');
The above jQuery selector will apply a shadow to the div element. Similarly, you can apply the same shadow class to any element that should have a shadow. You can adjust the CSS properties of the shadow as needed.
source share