Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I am not sure about Plugin as such, will update my answer if i get any.</p> <p>You can get this done by something like below(you may call it as crude way, but may be it helps you clicking some brilliant idea) :-</p> <p>Refer your <code>jQuery</code> file in <code>HTML</code>.</p> <pre><code>&lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" /&gt; &lt;script src="http://code.jquery.com/jquery-1.9.1.js"&gt;&lt;/script&gt; &lt;script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"&gt;&lt;/script&gt; &lt;/head&gt; </code></pre> <p>Create a <code>input</code> elements like </p> <pre><code>&lt;table&gt; &lt;tr&gt; &lt;td&gt;First Name&lt;/td&gt; &lt;td&gt; &lt;input type="text" onclick="parent.focuswhere = 0;" id="firstName" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; </code></pre> <p>Now, keep you dialog ready in HTML.</p> <pre><code>&lt;div id="dialog" title="Basic dialog" style="display:none"&gt; &lt;table&gt; &lt;tr&gt; &lt;td&gt;First Name&lt;/td&gt; &lt;td&gt; &lt;input type="text" onclick="parent.focuswhere = 0;" id="Text1" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;/table&gt; &lt;/div&gt; </code></pre> <p>You are all set, with HTML. Now coming to jQuery code.</p> <pre><code>&lt;script&gt; $(document).ready(function () { $("input").click(function (e) { $("#dialog").dialog(); console.log(e.target); }); }); &lt;/script&gt; </code></pre> <p><a href="http://jsfiddle.net/shubh0602/uUgsF/" rel="nofollow">JSFiddle Link</a></p> <p>Now, you can see I have <code>console.log(e.target);</code> at my <code>.click</code> function. You will get the clicked <code>&lt;input&gt;</code>. You can play around by creating dom element dynamically or in the same way as i have displayed above.</p> <p>Not sure whether it will help you. But just see if you get some hint and bring out something cool.. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload