Looking to incorporate an additional condition into a JavaScript function
initial condition
if (content.length==elmnt.maxLength)
new condition
if (content.length==elmnt.maxLength && current form field value > 1400)
How can I properly implement the condition "current form field value > 1400" in JavaScript?
Complete original code:
<SCRIPT TYPE="text/javascript">
function jumpField(elmnt,content)
{
if (content.length==elmnt.maxLength)
{
next=elmnt.tabIndex
if (next<document.forms[0].elements.length)
{
document.forms[0].elements[next].focus()
}
}
}
</SCRIPT>
Thank you!