[jQuery] Re: Please need your help ( change image when i click on it)

2009-02-15 Thread mtsmit2
You could do something like the following. I haven't tested this and it is late, so I am not promising it actually works :-). $("img").click(function() { $this = $(this); $this.attr("src", "newimage.jpg"); $("#textbox-id").val($this.attr("id")); }); On Feb 15, 1:46 pm, Hellofrom wr

[jQuery] Re: jQuery Plugin "Hello World"

2009-02-15 Thread mtsmit2
The following is a pretty good starting point. http://docs.jquery.com/Plugins/Authoring On Feb 15, 3:32 pm, James wrote: > Trying checking this > tutorial:http://www.learningjquery.com/2007/10/a-plugin-development-pattern > > On Feb 15, 10:28 am, Tim Johnson wrote: > > > Google gives me lots

[jQuery] Re: getting border with without em or px

2009-02-14 Thread mtsmit2
Hey, There might might be an easier/better way but I always do the following when I get number values from CSS: parseInt($(.someclass).css("left")); On Feb 14, 2:30 pm, Alain Roger wrote: > Hi, > > i know how to get border width with jQuery but every time it retrieves also > the format (px o