Hello Guys,
I'm having problem selecting an element with an id like this <li ="0f:Bactidol_Recorder.mp4">.
I tried using the function that escapes meta-characters with two backslashes below from this jquery link but still can't select the element
Function:
function jq(myid) {
return '#' + myid.replace(/(:|\.)/g,'\\$1');
}
Example:
$(jq('0fb:Bactidol_Recorder.mp4')).empty()
Output:
$(#0fb\\:Bactidol_Recorder\\.mp4).empty();