• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 467
  • Last Modified:

Jquery 1.8 error

Hello,
  I download jquery 1.8 and I get the error

"Error: Syntax error, unrecognized expression: :radio[name=r_trace]::checked"

This work in the previous version of Jquery.

Thanks for the help

<script type="text/javascript" charset="utf-8">
$(document).ready(function() 
{  
   var traceCategory = $('input:radio[name=r_trace]::checked').val();
}

Open in new window


HTML
<input type="radio" id="r_trace" name="r_trace" value="SelectedTrace" checked>Selected Trace
</input>
<input type="radio" id="r-trace" name="r_trace" value="AllTrace">All Traces</input>

Open in new window

0
SiemensSEN
Asked:
SiemensSEN
1 Solution
 
leakim971PluritechnicianCommented:
why << :: >> between r_trace] and checked ?

what about :
<script type="text/javascript" charset="utf-8">
$(document).ready(function() 
{  
   var traceCategory = $('input:radio[name=r_trace]:checked').val();
}

Open in new window

0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now