What is the purpose of inserting a dot or period in the id of an HTML element? Are there any additional benefits in terms of coding languages?
<div id="PAT.TID" class="lineHeight frmData">Headset, e.g. Bluetooth headset, for mobile device has configuration logic which configures headset based on sensor data indicating whether headset is being worn by user</div>
I need to select the div with id="PAT.TID", how can I achieve that?
document.querySelector('#PAT\.TID')
When trying this in the Chrome browser console, I receive a null
object.
Is there a way to select elements with IDs containing wildcards using pure JavaScript (similar to querySelector)?