Browse Source

Merge pull request #8 from babolivier/development

Button now has a specific id
Brendan Abolivier 8 years ago
parent
commit
13be37fe17
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      README.md
  2. 1
    1
      front/form.js

+ 1
- 1
README.md View File

120
     <textarea required="required" placeholder="Your message" id="form_text_textarea"></textarea>
120
     <textarea required="required" placeholder="Your message" id="form_text_textarea"></textarea>
121
 </div>
121
 </div>
122
 <div id="form_subm">
122
 <div id="form_subm">
123
-    <button type="submit" id="form_subm">Send the mail</button>
123
+    <button type="submit" id="form_subm_btn">Send the mail</button>
124
 </div>
124
 </div>
125
 ```
125
 ```
126
 
126
 

+ 1
- 1
front/form.js View File

175
     var button = document.createElement('button');
175
     var button = document.createElement('button');
176
     
176
     
177
     button.setAttribute('type', 'submit');
177
     button.setAttribute('type', 'submit');
178
-    button.setAttribute('id', id);
178
+    button.setAttribute('id', id + '_btn');
179
     
179
     
180
     button.innerHTML = text;
180
     button.innerHTML = text;
181
     
181