I have a Div with position:relative which contains “one or more” images inside it with postion:absolute with some top and left values. I need to toggle the position attribute of ALL THE IMAGES at a time between Absolute and Auto/Relative with a button using JS or JQuery.
Is there any way to work with all these child IMAGES at a time?
I have a Div with position:relative which contains one or more images inside it
Share
try the following:
html
css
jQuery
Demo: http://jsfiddle.net/ZRDdB/