I have below HTML format:
<ul class="whatlike-list">
<li class="first">
<a href="/SessionHandler.aspx" class="button-flight-search">Search for Flights</a>
<div class="open-block-holder">
<div id="slideFlightSearch" class="open-block" style="display: block; left: 650px;">
</div>
</div>
</li>
</ul>
Now I am looking to get DIV ID="slideFlightSearch" on the click of link "Search for Flights", I have got the class "button-flight-search" in my $this object. Something like below in my JQuery.
$(link).click(function()
{
alert($(this).attr("class"));
})
In the above alert I am getting the class "button-flight-search", however I need the inner DIV ID slideFlightSearch
Please suggest using JQuery.