I can not type in input

2

I have a problem landing page that I'm developing. I'm not a professional developer and I've never had a similar problem.

I can not type in any of the inputs you have on the page. I saw some links where the problem was a div over the inputs, but that's not the case. I can click on the field, but when I type, no text appears. The funny thing is that if I try to paste text into the input, it appears normally.

Follow url for viewing: link

Does anyone have any idea what it can be? HTML, CSS, JS? I'll be grateful for any help!

    
asked by anonymous 28.08.2017 / 15:52

2 answers

2

In the file site.js you have this code:

$(document).on('keypress', '.first-form', function (e) {
    e.preventDefault();
    var keycode = (e.keyCode ? e.keyCode : e.which);
    if (keycode == '13') {
        transfere_dados();
    }
});

// e logo de seguida outro igual...
$(document).on('keypress', '.send-form', function (e) {
    e.preventDefault();
    var keycode = (e.keyCode ? e.keyCode : e.which);
    if (keycode == '13') {
        envia_email();
    }
});

It is preventing the entered characters from being used. Remove this, or at least put e.preventDefault(); within if (keycode == '13') {

    
28.08.2017 / 15:55
0

I've been looking at the site and in your js ( site.js ) you are going to capture keypress and use preventDefault then try to enter preventDefault within if (keycode == '13')

$(document).on('keypress', '.first-form', function (e) {
    var keycode = (e.keyCode ? e.keyCode : e.which);
    if (keycode == '13') {
        e.preventDefault();
        transfere_dados();
    }

});

$(document).on('submit', '[name="send-form"]', function (e) {
    envia_email();
});

$(document).on('keypress', '.send-form', function (e) {
    var keycode = (e.keyCode ? e.keyCode : e.which);
    if (keycode == '13') {
        e.preventDefault();
        envia_email();
    }
});
    
28.08.2017 / 16:29