We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Trusted by the world’s leading companies

Syncfusion Trusted Companies

Overview

The JavaScript TextBox (text field) is a control for editing, displaying, or entering plain text on forms to retrieve user names, phone numbers, email addresses, and more. This control is an extended version of the HTML5 TextBox (input type text) control with icons, floating labels, different sizing, grouping, validation states, and more. It is available in HTML5/CSS and JavaScript versions.


JavaScript TextBox

The JavaScript TextBox control provides a floating label with minimal configuration. It supports most of the features that are available in the pure HTML5/CSS version of the TextBox control.


HTML5/CSS TextBox

The simple HTML5 TextBox control renders using pure CSS and HTML. It supports all the essential features, such as input groups with icons, floating labels, multiline text, different sizing, validation states, and more.


Input group

Easily create input groups by prepending or appending icons, buttons, or text with floating labels in the TextBox control. For example, you can prepend text with a dollar symbol ($) for price input or prepend at sign (@) for user names.


Floating label (placeholder text)

The JavaScript TextBox control floats placeholder text at the top of the input box with an animation when the input receives focus or has a value. The floating label ensures that the input value and label are always visible.


Input sizing

The HTML5 TextBox control has built-in sizing support (normal and small modes) to fit the input box’s size with sufficient padding and spacing.


Input validation with HTML forms

The JavaScript TextBox control validates the input value and applies corresponding validation styles for success, error, and warning states, which are used in most standard HTML forms.


Multiline TextBox

The HTML5 TextBox control is capable of handling multiple lines of text with floating labels that help you to enter address, description, comments, feedback, and more.


Get and set text box value

Easily set or retrieve the value in the JavaScript TextBox control to process it. Enable the clear button to allow users to reset the input value.


Right-to-left (RTL) rendering

The JavaScript TextBox control supports right-to-left (RTL) rendering. Users can change the text direction and layout from right to left. This improves user experience and accessibility for users of RTL languages.


Themes

The JavaScript TextBox control has several built-in themes such as Material, Bootstrap, Fabric (Office 365), Tailwind CSS, and High Contrast. Users can customize any of these built-in themes or create new themes either by overriding Sass variables or using our Theme Studio application.

Developer-friendly APIs

Developers can control the appearance and behaviors of the JavaScript TextBox control, including its floating label, using a rich set of APIs.


Other supported frameworks

The TextBox component is also available in Blazor, React, Angular, and Vue frameworks. Check out the different TextBox platforms from the links below,


JavaScript TextBox Code Example

Easily get started with the JavaScript TextBox using a few simple lines of HTML and TS code example as demonstrated below. Also explore our JavaScript TextBox Example that shows you how to render and configure a TextBox in JavaScript.

<div class="control-section">
    <div class="content-wrapper">
        <div>
            <!--element which is going to render the TextBox-->
            <input class="e-input" type="text" placeholder="Enter Date" />
        </div>
    </div>
</div>
import { InputObject, TextBox } from  '@syncfusion/ej2-inputs';
/**
 * Sample for CSS input boxes.
 */

    let outlineTextBox: TextBox = new TextBox({
        placeholder: 'Enter Date',
        cssClass: 'e-input',
        floatLabelType: 'Auto',
    });



70+ JAVASCRIPT UI CONTROLS

Frequently Asked Questions

  • Provides an extended version of the HTML input element, supporting both pure-CSS and pure-JavaScript versions.
  • Easily create input groups with icons, buttons, help text, and validation messages.
  • Supports standard Syncfusion themes which include Bootstrap v5 and Tailwind CSS.
  • Add a modern look to your entered text and display floating labels using JavaScript.
  • Allows adjusting the input size and supports multiline mode.
  • Simple configuration and API.
  • Supports all modern browsers.
  • Mobile-touch friendly and responsive.
  • One of the best JavaScript TextBox in the market that offers feature-rich UI to interact with the software.
  • Extensive demos and documentation to learn quickly and get started with JavaScript TextBox.

We do not sell the JavaScript TextBox separately. It is only available for purchase as part of the Syncfusion JavaScript suite, which contains over 70 JavaScript components, including the TextBox. A single developer license for the Syncfusion Essential Studio for JavaScript suite costs $995.00 USD, including one year of support and updates. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

You can find our JavaScript TextBox demo here.

No, our 70+ JavaScript components, including TextBox, are not sold individually, only as a single package. However, we have competitively priced the product so it only costs a little bit more than what some other vendors charge for their TextBox alone. We have also found that, in our experience, our customers usually start off using one of our products and then expand to several products quickly, so we felt it was best to offer all 70+ JavaScript components for a flat fee of $995/developer. On top of this, we might be able to offer additional discounts based on currently active promotions. Please contact our sales team today to see if you qualify for any additional discounts.

No, this is a commercial product and requires a paid license. However, a free community license is also available for companies and individuals whose organizations have less than $1 million USD in annual gross revenue and five or fewer developers.

A good place to start would be our comprehensive getting started documentation.

Read independent,
authenticated reviews
on G2

Download Now Pricing

What do our customers say about us?

double quotes

We're using the file formats and Windows/JavaScript list controls a lot. They're fast, easy to use, and the documentation is good and contains examples. Tickets with questions or suggestions were answered within a day, so we're happy to use the Syncfusion libraries.
Daniel Persidok

Daniel Persidok

wpd onshore GmbH & Co. KG

double quotes

Using Syncfusion Angular and JavaScript controls makes front-end web development a piece of cake. Each component has many properties that can be configured as per your desire, methods that can be used to interact with the element, and a lot of events that trigger at different stages, which makes modifying your components according to the state of the application an easy task. Also, their support is amazing! They always offer a sample working project, which makes it very simple to solve your question about your code.
Carlos Rodriguez Garcia

Carlos Rodriguez Garcia

Vistatec

Transform your applications today by downloading our free evaluation version Download Free Trial

Awards

Greatness—it’s one thing to say you have it, but it means more when others recognize it. Syncfusion is proud to hold the following industry awards.

Up arrow icon

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile