Wednesday 5 March 2014

default button in html using jquery

use this steps:
Html or aspx or View
create textbox and button in the page and assign id,

Then,

JQUERY

$("#textboxID").keyup(function (event) {
        if (event.keyCode == 13) {
            $("#buttonID").click();
        }
    });

No comments:

Post a Comment