You can try like the following examples if you are using jQuery 1.3.2
version:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

<html xmlns="http://www.w3.org/1999/xhtml";>
<head>
    <title></title>

    <script type="text/javascript" language="javascript"
src="JavaScripts/jquery-1.3.2.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
    alert($("div:[title=ABC]").html()); // i cannot get the jQuery object
    alert($("div").filter("[othertitle=<<<ABC>>>]").html());
    });
</script>
</head>
<body>
<div id="div1" title="ABC" othertitle="<<<ABC>>>">
    sample text...
</div>
</body>
</html>

It worked for me.

Thank you,

Kartik Sehgal

On Fri, Jul 24, 2009 at 8:06 AM, Daniel Huang <[email protected]>wrote:

>
> Hi,
> I just come up against a problem for jQuery selector, nd the details
> is under below:
>
> <script>
>     $('d...@title=' + $(this).text() + ']'); // i cannot get the
> jQuery object
> </script>
> <div title="<<<ABC>>>">
>     ...
> </div>
>
> So, it seems that the selector could not get dom elements by xpath in
> case of some special charactors? I wander how can i get it in this
> case, is there someone could help me?
>
>
> thx
> Daniel
>
> >
>


-- 
URL: http://sites.google.com/site/spyderhoodcommunity

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery UI" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jquery-ui?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to