1

how to use the equation syntax javascript jquery for this syntax:

document.getElementById ("tone_positive_" + x). checked = true

some examples I have tried but failed or did I not understand the radio buttons to cope with jquery, thank you,

0

1 Answer 1

2

Doesn't

$("#tone_positive_" + x).attr("checked", "checked");

work?

Sign up to request clarification or add additional context in comments.

2 Comments

I'm french but it's not what I understand reading his question.
@Philemon It looks like he's trying to do it with just JavaScript but he mentions jQuery in his question too.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.