Friday, December 8, 2017

How do I select an element by an ID that has characters used in CSS notation using jQuery

// Does not work:
$( "#some:id" )
// Works!
$( "#some\\:id" )
// Does not work:
$( "#some.id" )
// Works!
$( "#some\\.id" )

No comments:

Post a Comment