checking a radio button dynamically in HTML?
===

I have a question regarding HTML coding ..

I'm doing some BPM development and I have a Custom HTML code block in it, in which I can write custom HTML/javascript code. I've figured out a way to link the HTML controls' values to variables defined in my BPM task.

For example, I can attach a HTML text area with a BPM variable like this:

`<td class="ws_cell_input"><textarea class="ws_textarea" name='tw#local#specifiedEntityNEPM#stdNepmLang'><#=tw.local.specifiedEntityNEPM.stdNepmLang#></textarea></td>`

In this scenario, the BPM variable I linked is `tw.local.specifiedEntityNEPM.stdNepmLang`


My problem is regarding checking the appropriate Radio Button, based on which one should be checked ... There are only these two radio buttons:

`<input class="ws_radio" type="radio">Yes</input>`

`<input class="ws_radio"  type="radio">No</input>`

I need to check the appropriate one, based on the value in this BPM variable: `tw.local.specifiedEntityNEPM.stdNepmDefault`

if so `tw.local.specifiedEntityNEPM.stdNepmDefault == 'yes'`, then the 'Yes' radio button gets checked, and vica versa ..

How can I do this in the said HTML block ..

By the way, I'm coding in the Lombardi Teamworks BPM environment ..