Delete Records with Multiple Animations using jQuery
Last modified on by
Every language & libraries has its own competitors. jQuery is hardly competitor to Flash. Now a days every web developers prefer to choose jQuery instead of Flash because of its ultimate UI Effects. jQuery leads when its come to SEO point of view where Flash doesn’t.
Deleting records in your web applications is must. So today I am going to tell you how to add multiple animations to delete records using jQuery. see more http://jqueryui.com/effect/
List of Available Effects
var parent = jQuery(this);
//list of effects stored in array
var effects = Array('explode','bounce','fade','blind','clip','drop','fold','transfer','size','shake');
//get random effect from effects array
var effect = effects[Math.floor(Math.random()*effects.length)];
var c = confirm('Delete this record?');
First I have stored all effects in an array. From that array I have taken one effect in a random manner & I had applied that effect into hide function
<img src="http://0.gravatar.com/avatar/82620dd66b22b34a915303b93b92929b" />
Facebook Style Tag Selector using jQuery & CSS3 <a href="http://w3lessons.info">Read More</a>
Please don’t forget to share and subscribe to latest updates of the blog.