jQuery Mobile Textinput clearBtnText Option Last Updated : 04 Jan, 2022 Summarize Comments Improve Suggest changes Share Like Article Like Report jQuery Mobile is an HTML-5 based user interface system used to design responsive and accessible websites for mobiles, tabs, and desktops. It is based on jQuery. In this article, we will use the jQuery Mobile Textinput clearBtnText option to set the text which we will see when hover on the clear button of a Textinput Widget. For this to work the Textinput clearBtn option should be set to true. The clearBtnText option accepts a String. Syntax: Initialize Textinput with clearBtnText option: $( ".selector" ).textinput({ clearBtnText: "Your Text Here" }); Get clearBtnText option after initialization: var clearBtnText = $( ".selector" ) .textinput( "option", "clearBtnText" ); Set clearBtnText option after initialization: $( ".selector" ).textinput( "option", "clearBtnText", "Your Text Here" ); CDN Links: <link rel=”stylesheet” href=”https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css” /><script src=”https://code.jquery.com/jquery-2.1.3.js”></script><script src=”https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js”></script> Example: In the example below, we will set clearBtn option to true and clearBtnText option to "Clear The Name". HTML <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Popup - reposition method</title> <link rel="stylesheet" href= "https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"/> <script src= "https://code.jquery.com/jquery-2.1.3.js"> </script> <script src= "https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.js"> </script> <script> $(document).ready(function () { $( "#GFG" ).textinput({ clearBtn: true, clearBtnText: "Clear The Name" }); }); </script> <style> .ui-input-text{ width: 400px; } </style> </head> <body> <div data-role="page"> <center> <h2 style="color: green">GeeksforGeeks</h2> <h3>jQuery Mobile TextInput clearBtnText option</h3> <br> <input id="GFG" type="text" name="name" autocomplete="off" placeholder="Enter Your Name Here." /> </center> </div> </body> </html> Output: Reference: https://api.jquerymobile.com/textinput/#option-clearBtnText Comment More infoAdvertise with us Next Article jQuery Mobile Textinput Widget enhanced Option V vpsop Follow Improve Article Tags : Web Technologies JQuery jQuery-Mobile jQuery-Mobile-Textinput Similar Reads jQuery Mobile Textinput Widget clearBtn Option jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Textinput Widget clearBtn Option to add a clear button to the input element when it set to true. Syntax: $( ".se 1 min read jQuery Mobile Textinput initSelector Option jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Textinput initSelector option. The value of this option is a selector string that picks elements on the basis of 2 min read jQuery Mobile Textinput Widget corners Option jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Textinput Widget corners Option to set the corner border radius of the input element. Syntax: $( ".selector" ).t 1 min read jQuery Mobile Textinput Widget enhanced Option jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Textinput Widget enhanced Option that describes the markup necessary for a textinput widget that has been provid 1 min read jQuery Mobile Textinput create Event jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using the jQuery Mobile Textinput create event. This event is triggered when the Textinput widget is created. Syntax: Initializing the T 2 min read jQuery Mobile Textinput Widget defaults Option jQuery Mobile is a web-based technology used to make responsive content that can be accessed on all smartphones, tablets, and desktops. In this article, we will be using jQuery Mobile Textinput Widget defaults Option and set its value to true that indicates the other widgets options have default val 1 min read Like