| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| mel150 
 
 
 Joined: 11 Jun 2008
 Posts: 15
 
 
 | 
			
				|  Posted: Tue Jan 22, 2019 2:35 pm    Post subject: Duplicate Ids |   |  
				| 
 |  
				| Hi, when I try to validate this at https://validator.w3.org, I get an error about duplicate ids. Duplicate Ids are not allowed on a page. 
 <tr>
 <td>
 <label for="q4">What is the best way to contact you? </label>
 <input type="radio" name="q4" id="q4" value="Phone" />Phone<br />
 <input type="radio" name="q4" id="q4" value="Email" />Email
 </td>
 </tr>
 
 What can I do about this? Thanks.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mycontac Site Admin
 
 
 Joined: 31 Dec 2003
 Posts: 2860
 
 
 | 
			
				|  Posted: Wed Jan 23, 2019 5:26 am    Post subject: |   |  
				| 
 |  
				| This cannot be changed and will not affect the functionality of the form. 
 Nick
 myContactForm.com
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		| mel150 
 
 
 Joined: 11 Jun 2008
 Posts: 15
 
 
 | 
			
				|  Posted: Wed Jan 23, 2019 7:54 am    Post subject: |   |  
				| 
 |  
				| https://softwareengineering.stackexchange.com/questions/127178/two-html-elements-with-same-id-attribute-how-bad-is-it-really 
 Ok, but it is not good coding. I ended up using a checkbox instead.
 |  | 
	
		| Back to top |  | 
	
		|  | 
	
		|  |