Jquery taconite selector with character that needs to be escaped

Posted by hdx on Stack Overflow See other posts from Stack Overflow or by hdx
Published on 2009-10-06T00:28:51Z Indexed on 2010/06/01 16:13 UTC
Read the original article Hit count: 236

I'm using the jquery taconite plugin to make an ajax request that will replace a certain element in my page, however the element has an id like "email.subject"..

I can select it just fine if I do '$("email\\.subject")', but when I try to use the taconite plugin like this:

<taconite>
    <replaceWith select="#email\\.subject">
        JUCA
    </replaceWith>
</taconite>

The plugin log says:

[taconite] No matching targets for selector: #email\\.subject

How can I make this work?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery