Trying to add JS to a data label, that will select a specific button if the enter key is pressed from within a specific text box.
<script>
$('[name="text box"]').keypress(function(event)
{ if(event.keyCode == 13)
{ $('[name="button"]').click(); }
});
</script>
Tried this script here, but nothing happens on the keypress.