javascript - Twitter Bootstrap tags input doesn't remove placeholder when onfocus -
i have been scratching head since yesterday on problem, cannot solve. new starter twitter bootstrap , going until yesterday.
i using latest jquery v1.11.1 , twitter bootstrap v3.3.1. yesterday downloaded bootstrap tags input, here: http://timschlechter.github.io/bootstrap-tagsinput/examples/
the plugin works , have changed css styles match page layout problem having placeholder attribute not disappear when on focus. if type in tag , add comma value placeholder show until start typing , disappear again.
i have tried using jquery onfocus function remove attribute when onfocus doesn't anything. want achieve when onfocus placeholder not show @ point not on blur.
my input field demonstrated below:
<input type="text" name="customer_tags" id="customer_tags" value="" placeholder="enter tags" data-role="tagsinput" required />
html5 placeholder
attribute not disappear when focus in input
tag... disappear when start typing. default behavior.
you can see @ w3schools well...
Comments
Post a Comment