Thursday, 12 September 2013

Checking any divs in some position or not by using jquery

Checking any divs in some position or not by using jquery

I Want to check whether a div present in a particular position or not.
so here is my code
html
<div class="container">
<div class="icon icon-1"></div>
<div class="icon icon-2"></div>
<div class="icon icon"-3></div>
.
.
.
.
.
</div>
css
.container {
position:relative;
}
.icon {
position:absolute
}
I will dynamically add left position to the icon divs. so am facing some
issue now. some time two or more icon div will be in same position. so i
just want to check whether any other div already present in there or not.
so let me know if have any jquery solution thanks

No comments:

Post a Comment