i got a simple qiestion, i want to show and hide my divs according to their idies, but couldnt figure out, for example i have a different divs and inputs with different ids:
<input onfocus="showtip(1)" onblur="hidetip(1); />
<div id="tip1"></div>
<input onfocus="showtip(2)" onblur="hidetip(2); />
<div id="tip2"></div>
and
function showtip(id) {
$('.tip[id]').show('slow');
}
function hidetip(id) {
$('.tip[id]').hide('slow');
}
i can write it in javascript, to make it work, but i cant hide it with animation, thus i used jquery, but i can't define ids :( thank you all for the help! i really appreciate it!
iduse#:$("#elementId").show();- is that what you're asking?.class_nametry#id_nameand please go to this site and read some basic docs.jquery.com/Main_Page