I want that when I focus on the input tag using tab key, it should not highlight the $
sign and instead keep it static and let the user type the value, and also if user wants to leave it blank then it should show its placeholder along with the static $ sign.
This is the markup I'm trying:
<div style="width: 40%; float: right;">
<input id="value" type="text" name="value" placeholder="$ Value" value="" required="required" onfocus="this.placeholder = '$ ', this.value='$ '" onblur="this.placeholder = '$ Value'" />
</div>
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…