Wednesday, June 29, 2011

Re: [phpXperts] jQuery Help

 

Actually I am trying to use following codes



        $("div#relationship").hide();
       
       
       
        $('input.text_relation').focus(function()
        {
            $("div#relationship").slideDown('slow');
        });
       
       
       
       
        $('input.text_relation').blur(function()
        {
            $("div#relationship").slideUp('slow');
        });



When i am clicking on any one of the three input text box all three slideDown occurs. But i need only the clicked one slideDown.



On Thu, Jun 30, 2011 at 12:08 PM, Arifur Rahman <arifur.aiub@gmail.com> wrote:
 

you have to give a each text box a individual name or id. then you can do this. other wise how can you told the control to focus then next test box



On Thu, Jun 30, 2011 at 11:56 AM, asma tuli <asmatuli@gmail.com> wrote:
 

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 ??




--
Muhammod Arifur Rahman
Senior Software Engineer
Website: http://www.learneveryday.net
http://www.smartwebsource.biz
Cell : 880-1914282809


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

__,_._,___

No comments: