On event press Enter button call function

On event press Enter button call function

Could someone help me with the following line, it seems to make sense but when I press enter it doesnt call the serviceCall fucntion

<div id="buttonSubmit" onclick="serviceCall();" onKeyDown="if(event.keyCode==13) serviceCall();">SUBMIT</div>
    • Topic Participants

    • info