Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
Using jQuery Plugins
maz.jquer..
jQuery SVG: id="path_for_x:5_y:5" couldn't be found
in
Using jQuery Plugins
•
10 years ago
Hi there, i'm using jQuery SVG for a while to create a game map with some tiles, i need to change opacity of some tiles (to draw a astar path finding result) but i'm stuck on a little issue:
$("#path_for_x:5_y:5", mapSVG.root()).attr("opacity", "0.5");
the error is:
Uncaught Error: Syntax error, unrecognized expression: 5_y
Does anyone know why? i tried to escape some characters like ":" or "_" but didn't fix the issue.
1
Replies(4)
noth1ng
Re: jQuery SVG: id="path_for_x:5_y:5" couldn't be found
10 years ago
shouldn't it be .css('opacity', '0.5') ?
Leave a comment on noth1ng's reply
maz.jquer..
Re: jQuery SVG: id="path_for_x:5_y:5" couldn't be found
10 years ago
Nope. Already tried btw...
This work in an other line of the same script:
$(this).attr("opacity", "0.5")
but thank you anyway.
Leave a comment on maz.jquery1's reply
jakecigar
Re: jQuery SVG: id="path_for_x:5_y:5" couldn't be found
10 years ago
Try "double slash" escaping your colons.
$("#path_for_x\\:5_y\\:5", mapSVG.root()).attr("opacity", "0.5");
JΛ̊KE
Leave a comment on jakecigar's reply
maz.jquer..
Re: jQuery SVG: id="path_for_x:5_y:5" couldn't be found
10 years ago
It's working !! thank you.
Leave a comment on maz.jquery1's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to maz.jquery1's question
Top
Reply
{"z21019580":[14737000003545569],"z2976354":[14737000003543613,14737000003543620,14737000003542691],"z2950240":[14737000003545645]}
Statistics
4
Replies
2549
Views
1
Followers
Tags
Cancel
svg
unrecognized expression
Actions
Permalink