Adding Radio not working

  celictype = 'myvalue';
  radio_html = '<input type="radio" name="CeLicenseType" value="'+celictype+'" />'+celictype;
  $(radio_html).appendTo("#sm_content .ce_approval_html");

Open in new window


This creates this HTML:
<input type="radio" name="CeLicenseType" value="myvalue" />

Open in new window


instead of :
<input type="radio" name="CeLicenseType" value="myvalue" />myvalue

Open in new window

LVL 26
Eddie ShipmanAll-around developerAsked:
Who is Participating?
 
mrh14852Commented:
Change to this.

radio_html = '<input type="radio" name="CeLicenseType" value="'+celictype+'" /><label>'+celictype+'</label>';

Open in new window

0
 
Eddie ShipmanAll-around developerAuthor Commented:
Thanks, worked great
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.

All Courses

From novice to tech pro — start learning today.