Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.javascript > #20039 > unrolled thread

How do I find which text field

Started by"Tony" <tony.johansson@inport.com>
First post2013-05-29 17:32 +0200
Last post2013-05-29 15:51 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.javascript


Contents

  How do I find which text field "Tony" <tony.johansson@inport.com> - 2013-05-29 17:32 +0200
    Re: How do I find which text field Denis McMahon <denismfmcmahon@gmail.com> - 2013-05-29 15:51 +0000

#20039 — How do I find which text field

From"Tony" <tony.johansson@inport.com>
Date2013-05-29 17:32 +0200
SubjectHow do I find which text field
Message-ID<ko56q1$kph$1@dont-email.me>
I have three input text fields and when I click F4 I display a jQuery-UI 
dialog which mainly consist of a html table this works fine.
I select a row in the html table in the jQuery-UI dialog by double click and 
in the event handler I can extract the values from the selected row.
All this work fine.

Now starts the problem because I can click F4 and display the same JQuery-UI 
dialog in all three text fields I must be able
to know which text field was I standing in when I double click in the html 
table that exist in  jQuery-UI dialog.

What can I do to know that ?

Here is the event handler that is called when  I double click in table with 
id=ort.
If I keep this code then only text field with id = prevPortID will get value 
from the selected row
in the html table that exist in the jquery-UI

$("#ort").dblclick(function (event)
          {
              var row = $(event.target).closest('tr');

              $('#dlgSearchOrt').dialog("close");

              $('#prevPortID').val(row.find('td:eq(0)').text());
          });

//Tony 

[toc] | [next] | [standalone]


#20040

FromDenis McMahon <denismfmcmahon@gmail.com>
Date2013-05-29 15:51 +0000
Message-ID<ko586f$23n$2@dont-email.me>
In reply to#20039
On Wed, 29 May 2013 17:32:20 +0200, Tony wrote:

> I have three input text fields and when I click F4 I display a jQuery

You might have more luck posting these questions in a jQuery specific 
forum.

-- 
Denis McMahon, denismfmcmahon@gmail.com

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.javascript


csiph-web