I have the following code which nicely displays a list for me:
$(document).ready(function() {
$('dl dd').hide();
//$('dl.menuleft dd:gt(0)').hide(); use this if you want the first
one to stay opened
$('dl dt').click(function() {
if($(this).find(a).attr(href)){}else{
var $nextDT =
script src=jquery-latest.js type=text/javascript/script
script type=text/javascript
function loadContent(id) {
$(#contentArea).load(rpc.php?o=+id+);
}
/script
Works well, but I'd like the function to work for an area with a
variable div. So if the
('aSelected');
}
$('.someElements').hover(
function(){
$(this).addClass('aHover') },
function() {
$(this).removeClass('aHover');
}
);
This should solve your problem.
On Mar 7, 10:57 am, TheOriginalH [EMAIL PROTECTED] wrote:
I have a menu which is working nicely
, TheOriginalH [EMAIL PROTECTED] wrote:
Hi, very new to jQuery, but suspect it can probably help me out.
I have a div of a fixed height (auto scroll where content exceeds that
height), that I would like to center vertically on the page. I'm
assuming I can use jQuery to work out the height
I have a menu which is working nicely. When an item is clicked, I'm
using jQuery to change the CSS color to indicate it is current. To
keep things neat, I have also changed the color of all similar items
back to the default (otherwise ALL items would be highlighted as you
went through the menu.
Hi, very new to jQuery, but suspect it can probably help me out.
I have a div of a fixed height (auto scroll where content exceeds that
height), that I would like to center vertically on the page. I'm
assuming I can use jQuery to work out the height of the browser
window, subtract the height of
6 matches
Mail list logo