Textbox control with the x in top right hand corner
-
-
Hi all, how can I add the x clear button to textbox controls on a web page ? I've googled and only see references to Telerik - is this doable without third party controls ?
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
-
The browser will do it if you use type="search" instead of type ="text". Otherwise, I believe you'll have to write your own css and JS to do it. There's probably examples online if you want to do it custom.
-
Hi, I tried type = search but no cross - not a big deal as it's only a personal project
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP
-
pkfox wrote:
I tried type = search
What browser? You do have to start typing for it to show up. See Tryit Editor v3.6[^]
-
Hi and thanks for replying, I use Firefox, tried the link you posted and still no x Tried it with Edge and it worked
"I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP