ukung
ukung

Reputation: 410

radio button syntax with jquery handle

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,

Upvotes: 1

Views: 227

Answers (1)

MatTheCat
MatTheCat

Reputation: 18751

Doesn't

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

work?

Upvotes: 2

Related Questions