[jQuery] Re: How do I show the label text in an input

2009-01-24 Thread Ramanathan RV
Hi, Checkout the non-intrusive labelover plugin. http://remysharp.com/2007/03/19/a-few-more-jquery-plugins-crop-labelover-and-pluck/#labelOver It might be very useful when you decide to write client side validation on the form. On Sun, Jan 25, 2009 at 2:14 AM, Karl Swedberg wrote: > > > On Jan 2

[jQuery] Re: how to get one class from a multi-class element?

2009-01-24 Thread Ramanathan RV
It depends on what class you want to use. target = $("div").attr("class").split(" ") Now if I know what class I want to use, I would choose that one. But since thats not the probable case, lets say $.each(target, function(cls) { $("p").filter("." + cls).doSomething();}); Probably that helps. If

[jQuery] Re: Dynamic Inputs and having JS work

2009-01-24 Thread Ramanathan RV
Hello, You will have to bind autocomplete to newly added input elements. Alternatively, consider binding the autocomplete as the last operation (after the form is completely prepared). That way you can save on some glue code. And dont bind two autocomplete operations on an input element, as it rec

[jQuery] Re: .change alternative

2009-01-24 Thread Ramanathan RV
It is always better to restore the form state from the server side. That way, I believe you would fail gracefully incase the browser has disabled javascript. Moreover, it prevents distortion while rendering the page. On Sun, Jan 25, 2009 at 3:10 AM, LoicDuros wrote: > > Thanks Rick, I'll try to

[jQuery] Jquery and using regex in selectors

2008-06-29 Thread Ramanathan RV
How about allowing regex in jquery selectors? For instance $("input[name="*name"]) to select Typically in forms, most of the components are bundles. Like Names, Addresses, etc. One use case that I could think of is setting validators on all these fields would be easier with support for regex. -

[jQuery] Re: .load() problem

2008-05-03 Thread Ramanathan RV
I had the same problem. I guess you are using JQuery 1.2.3. I switched from 1.2.3 to 1.2.1 and things worked fine for me. Peraps there is an error in the latest code (in the domManip function). On Sat, May 3, 2008 at 7:59 PM, ^AndreA^ <[EMAIL PROTECTED]> wrote: > > or again... in this case, if yo

[jQuery] Jquery AJAX form submission

2008-05-01 Thread Ramanathan RV
Hello, I am currently using Jquery's post method to submit a form. And I use the responseText to update certain other DIV in the page. Since I am migrating the All-No-AJAX pages to AJAX pages, I am forced import the entire HTML (not data alone) with Javascript into the existing DOM. Unfortunately