[jQuery] pyramiding JQuery phrases...
hello,
i have following problem...: i want to send our a function when i am
klicking on a -area on my side. it should be differenced if the area is
shown or hidden. this is realised with css and i have to use jquery to fire
up the function. i just have a more simple example to show u what i mean:
<div class="expanded">
<h4>
some text
</h4>
<div class=showhide>...</div>
</div> //closing the expanded one
i want to track the funcionality when a user hit the span-area and its
essential if the div-class around this span is set to expanded or impanded.
so i have this so far:
$("#CatalogInfo div").mousedown(function(){
if ( $(this).hasClass("impanded") ) {
...
}
if ( $(this).hasClass("expanded") ) {
....
}
} });
so i know that i am in the div expanded or impanded. but now, i have to know
if i hit the mouse on the span only... so i need something new mousedown
event inside the hasClass("impanded") code. but everythin i tried out wasnt
the right way.
now, it doesnt matter if i hit inside the span, everything inside the
div-expanded counts for the mousedown event..
maybe someone can help me...
--
View this message in context: http://www.nabble.com/pyramiding-JQuery-phrases...-tp18716262s27240p18716262.html
Sent from the jQuery General Discussion mailing list archive at Nabble.com.