Saturday, July 2, 2011

Re: [phpXperts] jQuery Help

 

Try some thing like this

$('.text_relation').each(function(){
        $(this).focus(function(){
            $('#relationship').slideUp(500);
        });
    });

Hope this will work for you.


On Thu, Jun 30, 2011 at 1:33 PM, Saleha Latif <salehalatif@yahoo.com> wrote:
 

In jquery we use "id" of an element.You can use either separate ids or use
$(this).val(); to get the value & than apply function on it.


From: asma tuli <asmatuli@gmail.com>
To: phpexperts@yahoogroups.com
Sent: Thursday, June 30, 2011 10:56 AM
Subject: [phpXperts] jQuery Help

 
I have 3 input text box like

<input type="text" name="relation[]" class="text_relation" />

<input type="text" name="relation[]" class="text_relation" />

<input type="text" name="relation[]" class="text_relation" />


I would like to apply .focus() and .blur() on each of them individually.

How is it possible ??





--
:: Md.Shoriful Islam Ronju ::
http://blog.smronju.com

__._,_.___
Recent Activity:
Visit phpXperts website at www.phpxperts.net
.

__,_._,___

No comments: