JSFiddle - React, Tailwind, and code Playground

HTML

<div id="1685015:2722778">found?</div>
<div id="1685015_2722778">found?</div>
<div id="1685015-2722778">found?</div>
<div id="pure"></div>

JavaScript

var what_to_update = "1685015\\:2722778"
$('#' + what_to_update).html('good');

var what_to_update2 = "1685015_2722778"
$('#' + what_to_update2).html('good');

var what_to_update3 = "1685015-2722778"
$('#' + what_to_update3).html('good');

if ( document.getElementById("1685015:2722778") ) {
   document.getElementById("pure").innerHTML = document.getElementById("1685015:2722778").innerHTML + ' Pure JS found it fine';
}