html input holder,html - Html5 remove default place holder from date input - Stack Overflow

I'm building a form that contains a date input. I want to remove the default placeholder which is a date format and attach an icon next to it.

KlVsV.png

html

2 Pers

3 Pers

4 Pers

Genre

Male

Femme

sass

@import '../../styles/global/_variables.sass'

.container

margin-top:30px

.filter-col

padding-left:10px

padding-right:10px

input, select

border-top: 0

border-right: 0

border-left: 0

border-bottom: 0

border-radius: 0

-webkit-box-shadow: none

box-shadow: none

input:focus

-webkit-box-shadow: none

box-shadow: none

select:focus

-webkit-box-shadow: none

box-shadow: none

form

width: auto

height: 50px

border-radius: 3px

box-shadow: 10px 10px 20px 0 rgba(0, 0, 0, 0.15)

background-color: #f8f8f8

.search-container

margin-left: 75px

.btn-search-submit

border: none

font-size: 16px

cursor: pointer

width: 35px

height: 35px

border: none

background-color: $base-red

color: #fff

border-radius: 3px

margin-right: 10px

margin-left: 15px

.form-inline

background-color: #fff

Is there a way to hack the input date element to get access to the default place holder?

How can I add an icon beside this input? (Bootstrap 4 does not allow glyphicons anymore.)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值