| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | --- | 
					
						
							|  |  |  | id: bad87fee1348bd9aec908849 | 
					
						
							|  |  |  | title: Add Elements within Your Bootstrap Wells | 
					
						
							|  |  |  | challengeType: 0 | 
					
						
							| 
									
										
										
										
											2019-07-31 11:32:23 -07:00
										 |  |  | forumTopicId: 16636 | 
					
						
							| 
									
										
										
										
											2021-01-13 03:31:00 +01:00
										 |  |  | dashedName: add-elements-within-your-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
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | Now we're several `div` elements deep on each column of our row. This is as deep as we'll need to go. Now we can add our `button` elements. | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-21 05:06:51 +00:00
										 |  |  | Nest three `button` elements within each of your `div` elements having the class name `well`. | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | # --hints--
 | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | Three `button` elements should be nested within each of your `div` elements with class `well`. | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ```js | 
					
						
							|  |  |  | assert( | 
					
						
							|  |  |  |   $('div.well:eq(0)').children('button').length === 3 && | 
					
						
							|  |  |  |     $('div.well:eq(1)').children('button').length === 3 | 
					
						
							|  |  |  | ); | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | You should have a total of 6 `button` elements. | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ```js | 
					
						
							|  |  |  | assert($('button') && $('button').length > 5); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | All of your `button` elements should have closing tags. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | ```js | 
					
						
							|  |  |  | assert( | 
					
						
							|  |  |  |   code.match(/<\/button>/g) && | 
					
						
							|  |  |  |     code.match(/<button/g) && | 
					
						
							|  |  |  |     code.match(/<\/button>/g).length === code.match(/<button/g).length | 
					
						
							|  |  |  | ); | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | # --seed--
 | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | ## --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"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <div class="col-xs-6"> | 
					
						
							|  |  |  |       <div class="well"> | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | </div> | 
					
						
							|  |  |  | ``` | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2020-11-27 19:02:05 +01:00
										 |  |  | # --solutions--
 | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-24 13:28:07 -04: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"> | 
					
						
							|  |  |  |         <button></button> | 
					
						
							|  |  |  |         <button></button> | 
					
						
							|  |  |  |         <button></button> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |     <div class="col-xs-6"> | 
					
						
							|  |  |  |       <div class="well"> | 
					
						
							|  |  |  |         <button></button> | 
					
						
							|  |  |  |         <button></button> | 
					
						
							|  |  |  |         <button></button> | 
					
						
							|  |  |  |       </div> | 
					
						
							|  |  |  |     </div> | 
					
						
							|  |  |  |   </div> | 
					
						
							|  |  |  | </div> | 
					
						
							| 
									
										
										
										
											2018-09-30 23:01:58 +01:00
										 |  |  | ``` |