Welcome Guest, Not a member yet? Register   Sign In
using jquery on checking duplicate data in database with dynamic textfields
#7

[eluser]clariz[/eluser]
[quote author="Vitek" date="1221987748"]Hi clariz,

A couple of points to answer some of your other questions:

1. The reason blur() was only being applied to the first #Que element was because you were not binding blur() to the other #Que elements as they were being created. jQuery will only bind functions to elements that exist at the point blur() is invoked.

2. When using classes you use CSS class notation: $('.class')


The above code assumes a couple of things:

1. You are indeed using the jQueryForm plugin (which I assumed by your use of ajaxForm())
2. Main::checking() returns just the row count, without the '###'
3. #newQuestion has been replaced by #Questions. This is where ALL textboxes will go - both the static one and any that are created dynamically

I've tried to stay as close to your approach as possible. I hope it does the job for you (I should mention it's untested as well, it's 5am :-P )[/quote]


Thank you Vitek...
Yes, I am using jQueryForm plugin..
I'll just post with regards to the status of my problem. As of now, I'm testing different ways to solve it.
I'm really excited to use the code you have given. :cheese:

Thanks a lot. :-)


EDIT:
I have just tested the code but nothing happens on the event blur. I don't know what is the error behind.


-clariz-


Messages In This Thread
using jquery on checking duplicate data in database with dynamic textfields - by El Forum - 09-21-2008, 11:32 PM



Theme © iAndrew 2016 - Forum software by © MyBB