I have the following jQuery code in a project and I want to remove jQuery library from the project. So I am trying to convert this in to full javascript.
$(document).ready(function () {
$("#price-button").click(priceButtonClicked),
getURLParameter("run") && $("#price-button").click()
});
var priceCell = $("#priceCell");
I tried this using document.getElementById
but the issue is my page has not rendered and therefore the elements are not in present at that stage. I have no idea how to overcome this and any help would be greatly appreciated.
` so the elements exist at the point the script runs.
– Taplar May 06 '20 at 15:21` tag. (In roughly that order of preference.)
– T.J. Crowder May 06 '20 at 15:24