SHARE
TWEET

collector

D3vBl4ck Oct 18th, 2019 869 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     <!--- HTML -->
  2.     <input type="text" name="class_div[]" class="form-control class_div" value="multi"/>
  3.     <input type="text" name="class_div[]" class="form-control class_div" value="input"/>
  4.     <input type="text" name="class_div[]" class="form-control class_div" value="data"/>
  5.     <input type="text" name="class_div[]" class="form-control class_div" value="collector"/>
  6.     <!--- HTML -->
  7.     <!--- JS -->
  8.     var data = document.getElementsByClassName('class_div'),
  9.       join_data = [].map.call(data , function (_d) {
  10.         return _d.value;
  11.     }).join(',');
  12.     <!--- JS -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top