var appealWidgetContent = document.getElementById("appeal-widget-content"); appealWidgetContent.setAttribute("id", "appeals-widget"); appealWidgetContent.setAttribute("class", "card card-body mt-3"); var appeal = document.createElement('div'); appeal.setAttribute("id", "appeal"); // Appeal var appealName = document.createElement('div'); appealName.setAttribute("id", "appeal"); appealName.innerHTML = "
" + "
" + "" + "" + "" + "

" + "Bob the traction engine Restoration Fund" + " " + "" + "£" + "6000.00" + "<\/small>" + "<\/h2>" + "

" + "Bob the traction engine was built in 1892 by Richard Hornsby & Sons of Grantham .We are raising money to restore Bob and bring him back to life so that once more he can be used to power our Hornsby threshing drum. The only pairing of its kind in the UK." + "<\/p>" + "

" + "" + "<\/p>" + "<\/form>" + "

" + "" + "<\/p>" + "<\/div>"; appeal.appendChild(appealName); appealWidgetContent.appendChild(appeal);