Thursday, September 27, 2018

Header Insert using jquery

Hi,

Below is the code snippet that has been used to insert Header based on span id using jquery

var varCurrentStatus = $("span[id='Current_x0020_Status']").closest("tr");
    $('<h2 id="ProjectDetails" style="background-color: yellow;font-weight: BOLD;">Project Details</h2>').insertBefore(varCurrentStatus);

No comments:

Post a Comment