| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | --- | 
					
						
							|  |  |  | id: bad87fee1348bd9aec908854 | 
					
						
							|  |  |  | title: Label Bootstrap Wells | 
					
						
							|  |  |  | challengeType: 0 | 
					
						
							| 
									
										
										
										
											2019-07-31 11:32:23 -07:00
										 |  |  | forumTopicId: 18223 | 
					
						
							| 
									
										
										
										
											2021-01-13 03:31:00 +01:00
										 |  |  | dashedName: label-bootstrap-wells | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | --- | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | # --description--
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | For the sake of clarity, let's label both of our wells with their ids. | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | Above your left-well, inside its `col-xs-6` `div` element, add a `h4` element with the text `#left-well`. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Above your right-well, inside its `col-xs-6` `div` element, add a `h4` element with the text `#right-well`. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --hints--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | You should add an `h4` element to each of your `<div class="col-xs-6">` elements. | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ```js | 
					
						
							|  |  |  | assert( | 
					
						
							|  |  |  |   $('.col-xs-6').children('h4') && $('.col-xs-6').children('h4').length > 1 | 
					
						
							|  |  |  | ); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | One `h4` element should have the text `#left-well`. | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ```js | 
					
						
							|  |  |  | assert(new RegExp('#left-well', 'gi').test($('h4').text())); | 
					
						
							|  |  |  | ``` | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | One `h4` element should have the text `#right-well`. | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ```js | 
					
						
							|  |  |  | assert(new RegExp('#right-well', 'gi').test($('h4').text())); | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | All of your `h4` elements should have closing tags. | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ```js | 
					
						
							|  |  |  | assert( | 
					
						
							|  |  |  |   code.match(/<\/h4>/g) && | 
					
						
							|  |  |  |     code.match(/<h4/g) && | 
					
						
							|  |  |  |     code.match(/<\/h4>/g).length === code.match(/<h4/g).length | 
					
						
							|  |  |  | ); | 
					
						
							|  |  |  | ``` | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | # --seed--
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ## --seed-contents--
 | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							|  |  |  | ```html | 
					
						
							|  |  |  | <div class="container-fluid"> | 
					
						
							|  |  |  |   <h3 class="text-primary text-center">jQuery Playground</h3> | 
					
						
							|  |  |  |   <div class="row"> | 
					
						
							|  |  |  |     <div class="col-xs-6"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <div class="well" id="left-well"> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <div class="col-xs-6"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       <div class="well" id="right-well"> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | # --solutions--
 | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-05-02 05:24:38 -04:00
										 |  |  | ```html | 
					
						
							|  |  |  | <div class="container-fluid"> | 
					
						
							|  |  |  |   <h3 class="text-primary text-center">jQuery Playground</h3> | 
					
						
							|  |  |  |   <div class="row"> | 
					
						
							|  |  |  |     <div class="col-xs-6"> | 
					
						
							|  |  |  |       <h4>#left-well</h4> | 
					
						
							|  |  |  |       <div class="well" id="left-well"> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <div class="col-xs-6"> | 
					
						
							|  |  |  |       <h4>#right-well</h4> | 
					
						
							|  |  |  |       <div class="well" id="right-well"> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |         <button class="btn btn-default target"></button> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | ``` |