Hi all,
I have a form with html text boxes and one submit button. Part of code is like below:
<div>
<input id="add" type="text" style="width: 40%" />
<button id="btnAdd" type="submit" data-bind="click: $root.AddGoal">Add</button>
</div>
But as its a submit button, whenever pressing enter key its calling btnAdd click event. But my need is to call the button click event when only press enter key in #add text control.