Init a basic textbox

Hi Syncfusion Team,

i have some trouble to get a basic textbox work with JS5.

I would to do something simple like the button but with a text input box:

        tbxUser = document.getElementById('tbxUser');
tbxPwd = document.getElementById('tbxPwd');

  btnLogin = new ej.buttons.Button({ isPrimary: true });
btnLogin.appendTo('#btnLogin');
btnLogin.width = "30%";

3 Replies

KV Karthikeyan Viswanathan Syncfusion Team August 13, 2018 07:27 AM UTC

Hi Miguel,   
  
Thanks for contacting Syncfusion Support.   
  
The Textbox control depends on Stylesheet to render. It is fully based on CSS. So, you can’t render the textbox in script section.   
  
Please find the control initialization code:   
  
<code>   
  
<input class="e-input" type="text" placeholder="Enter Date" />   
  
</code>   



 
 
  
  
  
Regards,   
Karthikeyan V.   




MV Miguel Varela Rodriguez August 13, 2018 08:38 AM UTC

Thank you, i had a problem with the local .css, after refer to the online file it works.




KV Karthikeyan Viswanathan Syncfusion Team August 13, 2018 08:50 AM UTC

Hi Miguel,  
 
We are glad to hear that your issue has been resolved.     
 
Regards,   
Karthikeyan V

Loader.
Up arrow icon