How do I clear a search box with an 'x' in bootstrap 3?

前端 未结 9 1534
情歌与酒
情歌与酒 2020-12-12 10:44

Having some trouble with bootstrap, so some help would be awesome. Thanks

What I would like:(top part)

\

9条回答
  •  攒了一身酷
    2020-12-12 11:25

    Place the image (cancel icon) with position absolute, adjust top and left properties and call method onclick event which clears the input field.

    In css position the span accordingly,

    #iconSpan {
     position : absolute;
     top:1%;
     left :14%;
    }
    

提交回复
热议问题