$('span').addclass('red');
addClass has to be camel case - javascript is case-sensitive.
-- Josh
- Original Message -
From: weegekid [EMAIL PROTECTED]
To: jQuery (English) jquery-en@googlegroups.com
Sent: Wednesday, June 18, 2008 7:48 AM
Subject: [jQuery] Basic newbie question -
Another common solution is to have an image or a div that you just
show while loading and hide using the callback function...
script type=text/JavaScript
$(document).ready(function(){
$('#loadImg').show();
var fCallback = function(){ $('#loadImg').hide(); }
$(#show).load(file.php,
What i would do is add a class with addClass() to the div that has the
background-image of the animated loading gif and then on the load() function
, set the callback function to remove that so that when it is dome loading
it will remove the image.
[EMAIL PROTECTED] wrote:
Hello Friends,
3 matches
Mail list logo