Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Textbox control with the x in top right hand corner

Textbox control with the x in top right hand corner

Scheduled Pinned Locked Moved .NET (Core and Framework)
question
7 Posts 2 Posters 19 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • pkfoxP Offline
    pkfoxP Offline
    pkfox
    wrote on last edited by
    #1

    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

    S 1 Reply Last reply
    0
    • pkfoxP pkfox

      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

      S Offline
      S Offline
      SeeSharp2
      wrote on last edited by
      #2

      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.

      pkfoxP 1 Reply Last reply
      0
      • S SeeSharp2

        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.

        pkfoxP Offline
        pkfoxP Offline
        pkfox
        wrote on last edited by
        #3

        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

        S 1 Reply Last reply
        0
        • pkfoxP pkfox

          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

          S Offline
          S Offline
          SeeSharp2
          wrote on last edited by
          #4

          pkfox wrote:

          I tried type = search

          What browser? You do have to start typing for it to show up. See Tryit Editor v3.6[^]

          pkfoxP 1 Reply Last reply
          0
          • S SeeSharp2

            pkfox wrote:

            I tried type = search

            What browser? You do have to start typing for it to show up. See Tryit Editor v3.6[^]

            pkfoxP Offline
            pkfoxP Offline
            pkfox
            wrote on last edited by
            #5

            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

            S 1 Reply Last reply
            0
            • pkfoxP pkfox

              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

              S Offline
              S Offline
              SeeSharp2
              wrote on last edited by
              #6

              Yep, you're right. I thought all browsers had started doing that now but I guess not.

              pkfoxP 1 Reply Last reply
              0
              • S SeeSharp2

                Yep, you're right. I thought all browsers had started doing that now but I guess not.

                pkfoxP Offline
                pkfoxP Offline
                pkfox
                wrote on last edited by
                #7

                Never mind - as I said it's only a personal project - thanks again

                "I didn't mention the bats - he'd see them soon enough" - Hunter S Thompson - RIP

                1 Reply Last reply
                0
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • World
                • Users
                • Groups