On Fri, Oct 9, 2009 at 10:30 PM, anjith <anjithkumar.garap...@gmail.com>wrote:
> > i am using Jquery and javascript from long back but i don't know what > this really means and what they return etc can any explain these....or > can u just any wesite containing tutorials about these codings. > > > $("#username") > > $("#newUser").bind("click",{},function(){}) > > > $("#spamimage").attr({src:""}) > > I know what functions they do but i am unable to write my own > programing using these , the third command i know it is returning src > for a image but what is syntax and how to call value in a div or p tag > and how to return values in to those tags using these type of coding > can u say any books/websites or any e-material also helpful to me... > Generally we use document.getElementById().value or > document.getElementByName().value > > See my previous response for the answers to the first two, including websites. Search Amazon for jQuery and you'll see a few books. Make sure the books are for jQuery 1.3 (the latest version). The second isn't returning the src for an image. it's setting the src attribute to be an empty string on the image with id="spamimage". $('#foo') is jQuery notation for document.getElementById('foo'). Much more concise. -- Charlie Griefer http://charlie.griefer.com/ I have failed as much as I have succeeded. But I love my life. I love my wife. And I wish you my kind of success.