<div class="form_div">
<form name="first" class="dirs" method="post" action="">
<table>
<tr>
<td>
<img src="path..." class="info">
<div class="tip">
<p>Some text</p>
</div>
</td>
</tr>
</table>
</form>
</div>
<script type="text/javascript">
$(document).ready(function() {
$(".info").tip({ effect : 'slide'});
});
</script>
I want to select the div with the class tip and img tag class info from the div > form > table > tr > td. But i can’t select it with the function i have in the script.
The selector doesn’t find the img tag and the div with the class tip.
Am i going wrong somewhere?
Use this :
Its a multiple selector.
And look at .slideDown(), .slideUp() and .slideToggle()