I need to detect when someone hits \"enter\" in text inputs with a specific class.
My jQuery is as follows:
$(\'input.large\').keypress(function (e) {
check this one: http://jsfiddle.net/EJyyr/
used this html:
Personal Name Email
and this is the jQuery which logs the input text id
which logs the input text id
$('.large').keypress(function (e) { if(e.which ==13) console.log($(this).attr('id')); });