开发者

Test pasting into a field in Rails

On my web page's registration page, I have disabled pasting (with javascript) any text into the 'E-mail confirmation' fiel开发者_Go百科d. I want to create a test to test this functionality. Is there a way for me to do this?

$(document).ready(function () {
      $('#email_confirmation').bind('paste', function (e) {
         e.preventDefault();
      });
    });
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜