Two methods to make the text box input content prompt disappear_javascript skills
WBOY
Release: 2016-05-16 17:40:22
Original
1175 people have browsed it
The first method: Based on the new feature of HTML5 input tag - placeholder. In addition, the x-webkit-speech attribute can implement the voice input function.
Second method : Use span to simulate, position span, and use JS keyboard events determine input and determine whether the content in the span is displayed or hidden.