onkeypress should execute only if the value changed
<p>I have a function say jsFunEnter(e) </p>

<pre><code>&lt;input name="name" id="id" onkeypress="jsFunEnter(event)"  size="2" value="13"/&gt;

function jsFunEnter(e)
{
if (e.keyCode == 13) 
     {
       callAnother();
     }
}
</code></pre>

<p>In short I don't need to call the function jsFunEnter(e) on pressing enter key, if the value not changed. eg: if I have '7' in the textbox. I change '7' to '8' and press enter the function  should execute. But if I change '7' and enter '7' again and press enter won't call the function.</p>
