Code, here let me view the type values in text field in demo
<!DOCTYPE html>
<html>
<body>
<input type="text" name="fname" onkeyup="keyup(this)" value>
<script>
function keyup(element)
{
element.setAttribute("value",element.value);
}
</script>
</body>
</html>
However, when I move the same to actual website, I place the script inside <body> and also in head but I'm getting same error. I think something like an API or polymer js is interfering to find this `keyup' function.
Uncaught ReferenceError: keyup is not defined
at HTMLDivElement.onkeyup ((index):1)
All the solution on stackoverflow talks about placing the function in head scope which i did but i get same error. I don't know how to invoke this function. Thanks