Add ID or Class to parent

Add ID or Class to parent

Hi,

How do you add a Class or ID on the radio button if the text "This is the text here." exist?

  1.  <input name="option-16-19" value="26" onclick="validateValues(document.add,1);selectOption(this);" type="radio" />
    This is the text here.
Thanks.