Javascript: Conversion to uppercase
ProhanJan 15 2010 — edited Feb 9 2010I am trying to convert the value that I enter into an item to uppercase when I lose the focus.
So, on the "HTML Form Element Attributes" property of this item, I wrote:
onblur="Cap_Name();"
And I wrote this function:
function Cap_Name()
{
$x(P32_NAME_LAST).value = $x(P32_NAME_LAST).value.toUpperCase();
}
But it does not do anything when I lose the focus on this item.
Did I get the syntax wrong?
Thanks.