0

I am trying to call a JavaScript function oncellchange, but it's not working. Any help / guidance is appreciated. Here's my code:

<script type="text/javascript" language="javascript">

function trainingcourses_paging(pageclickednumber, parameter)
{
 alert('working');
}            

</script>
        
<input type="text" name="date" id="date" 
 oncellchange="trainingcourses_paging('1','');" />
5
  • 2
    When should it trigger? Have you tried onchange instead? Commented Dec 22, 2012 at 21:57
  • was never aware of oncellchange I swear I learn so much from browsing SO Commented Dec 22, 2012 at 22:00
  • onCellChange was stupid IE event, use onChange instead. @Levi answer should work. Commented Dec 22, 2012 at 22:02
  • Neither it works with onchange. It should trigger when I put a value in it's text place. Commented Dec 22, 2012 at 22:04
  • onChange happens if the value has changed and then the input box loses focus. Does it not trigger the function if you press tab after typing into the text box? Commented Dec 22, 2012 at 22:07

1 Answer 1

1

An input element has a onchange event, not an oncellchange, at least in all current major browsers. I believe oncellchange comes from an old version of IE only.

<script type="text/javascript" language="javascript">

function trainingcourses_paging(pageclickednumber, parameter)
{
 alert('working');
}


</script>



<input type="text" name="date" id="date" 
 onchange="trainingcourses_paging('1','');" />
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.