Bryan Li• 3,550
@Zy8712
Submitted
For some reason my Javascript code wipes out the default text in the entry area. Hoping someone can help explain as to how I can solve this issue. Thanks.
@Wasaanyi
@Zy8712
Submitted
For some reason my Javascript code wipes out the default text in the entry area. Hoping someone can help explain as to how I can solve this issue. Thanks.
@Wasaanyi
Posted
Well done Bryan. Try using the placeholder attribute for input in the place of value to set the default text. e.g
for <input type="text" value="DD" maxlength="2" class="">
try <input type="text" placeholder="DD" maxlength="2" class="">
Marked as helpful