Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removing : and space between asterik #119

Merged
merged 8 commits into from
Jun 10, 2024
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions content/body/form-error-checking.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,17 +42,17 @@

<div class="enable-form-example__fieldset-inner-container">
<div class="field-block">
<label class="required" for="name_html5">Full Name:</label>
<label class="required" for="name_html5">Full Name</label>
<input id="name_html5" size="25" type="text" required autocomplete="name" >
</div>

<div class="field-block">
<label class="required" for="email_html5">E-mail address:</label>
<label class="required" for="email_html5">E-mail address</label>
<input id="email_html5" size="25" type="email" required autocomplete="email" >
</div>

<div class="field-block">
<label class="required" for="phone_html5">Phone Number:</label>
<label class="required" for="phone_html5">Phone Number</label>
<input id="phone_html5"
size="25"
type="text"
Expand Down Expand Up @@ -166,12 +166,12 @@
<p class="form-instructions"><span class="required-symbol">*</span> denotes a required field.</p>

<div class="field-block">
<label class="required" for="name_js">Full Name:</label>
<label class="required" for="name_js">Full Name</label>
<input id="name_js" name="name_js" size="25" type="text" required >
</div>

<div class="field-block">
<label class="required" for="email_js">E-mail address:</label>
<label class="required" for="email_js">E-mail address</label>
<input id="email_js"
name="email_js"
size="25"
Expand All @@ -181,7 +181,7 @@
</div>

<div class="field-block">
<label class="required" for="phone_js">Phone Number:</label>
<label class="required" for="phone_js">Phone Number</label>
<input id="phone_js"
name="phone_js"
size="25"
Expand All @@ -197,7 +197,7 @@
</div>

<div class="field-block">
<label for="age-range">Age Range:</label>
<label for="age-range">Age Range</label>
<select id="age-range">
<option>Choose one</option>
<option value="a">0 to 18 years old</option>
Expand Down
2 changes: 1 addition & 1 deletion css/form-error.css
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@
}
.enable-form-example label.required::after {
color: #e60000;
content: " *";
content: "*";
font-weight: normal;
}
.enable-form-example .required-symbol {
Expand Down
4 changes: 2 additions & 2 deletions js/demos/custom-form-example.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ const formValidator = new (function () {
},
// Specify validation error messages
messages: {
name_js: 'Error: Please enter your first name',
email_js: 'Error: Please enter a valid email address',
name_js: 'Error: enter your first name',
email_js: 'Error: enter a valid email address',
phone_js: 'Error: Phone number invalid',
},
// Make sure the form is submitted to the destination defined
Expand Down
Loading