Skip to content

Commit dff011a

Browse files
author
Sachin Maheshwari
committed
default country value
1 parent 0474619 commit dff011a

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

web-assets/js/signup.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ $(document).ready(function () {
3737
$("#error").closest(".message").fadeIn();
3838
return false;
3939
}
40+
if (!country){
41+
$("#error").html("Choose your country");
42+
$("#error").closest(".message").fadeIn();
43+
return false;
44+
}
4045
$.ajax({
4146
url: apiServerUrl + "/validateHandle?handle=" + handle,
4247
xhrFields: {

web-assets/static-pages/signup.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,9 @@ <h1 id="page-title-heading" class="page-title-heading">
9494
</div>
9595
<div id="cc" class="input-field active">
9696
<label for="country">Choose your country</label>
97-
<select id="country" name="country" class="input-text"></select>
97+
<select id="country" name="country" class="input-text">
98+
<option value='' ></option>
99+
</select>
98100
<span><svg aria-hidden="true" focusable="false" width="5px" height="10px" viewBox="0 0 5 10" version="1.1"
99101
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="icon-arrow">
100102
<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g id="Lock" transform="translate(-396.000000, -3521.000000)"

0 commit comments

Comments
 (0)