Skip to content

Instantly share code, notes, and snippets.

View aaggour's full-sized avatar

Ahmad Aggour aaggour

View GitHub Profile
@aaggour
aaggour / radio type
Created July 30, 2019 21:37
radio type
<input type=radio name=group value=1>
<input type=radio name=group value=2>
<input type=radio name=group value=3>
@aaggour
aaggour / checkbox type
Created July 30, 2019 21:33
checkbox type
<input type=checkbox value=a name=checked checked>
<input type=checkbox value=b name=not_checked>
<input type=checkbox value=c name=indtrmnt id=i>
document.getElementById(indtrmnt).indeterminate = true;
@aaggour
aaggour / password type
Created July 30, 2019 21:27
password type
<input type=password>
<input type=password placeholder="********"
pattern="\w{8}" title="8 character password">
<input type=text style="-webkit-text-security: circle;">
@aaggour
aaggour / hidden type
Created July 30, 2019 21:25
hidden type
<input type=hidden name=foo value=bar>
@aaggour
aaggour / button type
Created July 30, 2019 21:21
button type
<input type=button>
<input type=button value="I am a button">
@aaggour
aaggour / text type
Created July 30, 2019 21:14
text type
<input type=text>
<input type=text>
@aaggour
aaggour / range type
Created July 30, 2019 21:08
range type
<input type=range min=10 max=30 value=10 step=1>
<input type=range multiple min=0 max=10 step="0.2" value="3,5">
@aaggour
aaggour / number type
Created July 30, 2019 21:06
number type
<input type=number>
<input type=number min=100 max=999 step=5>
@aaggour
aaggour / color type
Created July 30, 2019 21:04
color type
<input type=color>
@aaggour
aaggour / search type
Created July 30, 2019 21:02
search type
<input type=search>
<input type=search results=5>
<input type=ssearch results=5 autosave=a_unique_value>