JSFiddle - React, Tailwind, and code Playground

HTML

div#2.5
<div id='2.5'>Remove me</div>

JavaScript

$("div[id='2.5']").remove();