Body textarea test

Open browser console (F12) on send-process page, paste this and press Enter:

// DIAGNOSTIC - paste in console on send-process page
(function(){
  var body = document.getElementById('body');
  console.log('1. body element:', body);
  console.log('2. body tagName:', body ? body.tagName : 'N/A');
  console.log('3. body type:', body ? body.type : 'N/A');
  console.log('4. body visible:', body ? body.offsetParent !== null : 'N/A');
  console.log('5. body display:', body ? getComputedStyle(body).display : 'N/A');
  console.log('6. body height:', body ? body.offsetHeight : 'N/A');
  console.log('7. body value BEFORE:', body ? body.value.length : 'N/A');
  
  // Try setting
  if(body){
    body.value = 'TEST BODY INJECT 123';
    console.log('8. body value AFTER .value=:', body.value.length);
    jQuery('#body').val('TEST BODY JQUERY 456');
    console.log('9. body value AFTER jQuery:', body.value.length, jQuery('#body').val().length);
  }
  
  // Check selects
  var ct = document.getElementById('creatives-content-type');
  console.log('10. content-type el:', ct);
  console.log('11. content-type tagName:', ct ? ct.tagName : 'N/A');
  console.log('12. content-type current:', ct ? ct.value : 'N/A');
  console.log('13. content-type options:', ct ? Array.from(ct.options).map(o=>o.value) : 'N/A');
  console.log('14. content-type visible:', ct ? getComputedStyle(ct).display : 'N/A');
  
  // Check bs-select rendered elements
  var bsBtn = ct ? ct.parentElement.querySelector('.dropdown-toggle') : null;
  console.log('15. bs-select button:', bsBtn);
  console.log('16. bs-select button text:', bsBtn ? bsBtn.textContent.trim() : 'N/A');
  
  // Try selectpicker
  if(ct && jQuery.fn.selectpicker){
    console.log('17. selectpicker available: YES');
    jQuery('#creatives-content-type').selectpicker('val','multipart/alternative');
    jQuery('#creatives-content-type').selectpicker('refresh');
    console.log('18. after selectpicker val:', ct.value);
  }
  
  console.log('=== DONE ===');
})();