1 Reply Latest reply on Apr 23, 2015 10:21 AM by Pim Feijen

    Email field and on screen keyboard

    Pim Feijen Level 1

      Hi,

       

      I created an email field:

      $("<input type='text' id='Email' name='Email' tabindex='1' maxlength='200' style='background-color:white; border:1px solid black' required>").appendTo(sym.$("emailbox")) .css({'font-size' : '200%', 'color':'blue'});

       

      A submit button and a PHP-file that sends a message to the user´s email.

      All this works.

      I can write to the field with a physical keyboard.

      But how would you append text with an on screen keyboard to the email field?

      Would it be possible (when you press "a") with something like:

       

      $("name or ID of text box").append("a");

       

      I can´t get it working, probably because I´m targeting the wrong symbol?

       

      Thanks!

        • 1. Re: Email field and on screen keyboard
          Pim Feijen Level 1

          Found out!    

          Should be:

          $("<textarea type='text' id='Email' name='Email' tabindex='1' cols='30' rows='1' maxlength='300' style='background-color:black; border:1px solid white; resize:none; ' required>").appendTo(sym.$("emailbox")) .css({'font-size' : '200%', 'color':'#fbf3c5'});

           

          On click:

          $("#Email").append("a");

           

          You probably can not write to an input field with "append"