Code Pad
Code
List Code
Search Code
Images
List Images
Search Images
Login
Privacy
Home
jquery function in a function nested functions
jquery ui datepicker
js
styling css elements based on their attributes
css
animate background gradient css
css
linear gradient background with 3 colours
css
web storage testing
js
load a script based on a page condition variable
jquery
loop through elements and change the content using each and substr with jquery
jquery
mega menu testing
css
basic foundation grid layout
html
jquery function in a function nested functions
2:44 am, January 23, 2019
Code
html
css
js
scripts
html
lets say we have this: $("#"+id_source).addClass('flipOutY'); and we want to add a function to it which will happen after the 1st bit is finished we can add it like this: function(){ $("#"+id_source).addClass('flipOutY', function(){ alert('test sub function'); });
css
js
$("#"+id_source).addClass('flipOutY', function(){ alert('test sub function'); );
scripts
Download & Run
Download File
Run Demo
Re-load Preview
Preview
Ow8Zp