javascript - difference between two Labels
<p>I have one question related to Javascript Validation: </p>

<p>How could I find the difference(the characters which are available in first label but not are in second label) between two Labels ?</p>

<p>Thanks - see the code below:</p>

<pre><code>   &lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;

&lt;/head&gt;

&lt;body&gt;

&lt;table width="50%" border="0" cellspacing="0" cellpadding="4" style="font-family:Arial, Helvetica, sans-serif; font-size:12px;"&gt;
  &lt;tr&gt;
    &lt;td width="44%" align="right"&gt;Label 1&lt;/td&gt;
    &lt;td width="56%"&gt;&lt;input type="text" value="ABCD" /&gt;&lt;/td&gt;
    &lt;td width="56%" style="color:#C00;"&gt;Note&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td align="right"&gt;Label 2&lt;/td&gt;
    &lt;td&gt;&lt;input  type="text" value="AEBHL" /&gt;&lt;/td&gt;
    &lt;td rowspan="2" valign="top"&gt;I want to show the difference of Label 1 and Label 2 in Diffrence's input. How could I find the difference?&lt;/td&gt;
  &lt;/tr&gt;
  &lt;tr&gt;
    &lt;td align="right"&gt;Difference&lt;/td&gt;
    &lt;td&gt;&lt;input type="text" value="EHL" style="border:1px solid #C00;" /&gt;&lt;/td&gt;
  &lt;/tr&gt;
&lt;/table&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
