framework7

Open full view…

Clear text input field

shdev
Tue, 13 Oct 2015 11:34:14 GMT

Hi All, How can we clear a text field in the same way the search bar get cleared on cancel ? Thank you

Vladimir Kharlampidi
Tue, 13 Oct 2015 18:36:59 GMT

$('input').val('')

shdev
Wed, 14 Oct 2015 08:08:10 GMT

Spassiba Vladimir !

shdev
Fri, 16 Oct 2015 07:07:06 GMT

How can we include the cross pict inside or next to a text input field ?

breschi
Tue, 10 Jan 2017 11:58:05 GMT

I'm also interested in this!

durgeshsatyam
Thu, 15 Mar 2018 19:57:25 GMT

$('input').val('') It removes text but in the floating label, the label keeps floating. It doesn't come back until the clear button is clicked.

rahulsaxena
Thu, 17 May 2018 07:08:56 GMT

the same issue is with me. the text has been cleared but the floating label keeps floating.