I'm trying do something like this
if ($(this).parent() == $('div.propdata')){
$(this).prepend('<a class="booknow2 sidelink" href="../../availability/default.aspx"><span>Book now »</span></a>');
}
By the way $(this)
is evenprop
Can't seem to get it to work
This is my code
<div class="propdata" id="FARM"><div class="evenprop">This is where the prepend would be</div></div>
I need it to only prepend that bit if the parent of evenprop
is propdata
Hope this makes sense
Thanks
Jamie