Replace Tag for Text (jQuery)

by Zuhaib Siddiqui

HTML

<h2 class="BPMSectionHeader box blue" title="">Access to Scientific Instrumentation - Application Form</h2>

JavaScript

$('h2.BPMSectionHeader').replaceWith( "<h2><span>" + $('h2.BPMSectionHeader').text() + "</span></div>" );