how to get values in each input text and assign to a variable

  javascript, laravel, laravel-blade, loops, php

html code like this I want to get all the values in each text area from container-body class
lets assume that I have duplicate elements

   <div class="container-body">
     <div class="p-form">
      <ul class="p-formList">
         <li class="p-formList__item">
           <div class="p-formList__item__body">
              <div class="c-input c-input--full">
                <textarea type="text" class="body-text" placeholder="説明記入をお願いします" 
                  name="description" 
                    value="">
               </textarea>
              </div>
            </div>
         </li>
      </ul>
    </div>
   </div>
   

Source: Ask PHP

LEAVE A COMMENT