Two jQuery questions:
1) Given this HTML structure
<div id="tipper" class="tiplink"><a href='test.html' >Link Text</a>
<div id="tip" class="tipdiv">This is the tool tip text.</div>
</div>
How can I alter these to work on classes so that that when a div of class .tiplink is moused over the div of class .tipdiv inside it is targeted?
$(document).ready(function(){
$('#tipper').mouseover(function() {
$('#tip').clearQueue().show(0);
});
$('#tipper').mouseleave(function() {
setTimeout( function(){
$('#tip').hide(0);
},20000);
});
2) Without using a text input is it possible to select all the text in .tipdiv on click?