Hi All,

I have an issue in using radio buttons in a form. I want to check/uncheck 
the radio button based on a variable passed. My code is as follows :

*var checkOne ="false"

var template = domplate(
  {    
  tag: 
    FORM({name:"resform"},
      BR(),
      INPUT({name:"radiolocator", type: "radio"}),  
      SPAN("one"),
      INPUT({name:"radiolocator", type: "radio"}),
      SPAN("two")                
     ), 
}
)
;

template.tag.replace({check1:checkOne}, parentNode, template);*

In standard html checked attribute inside radio input would itself check 
the element without considering the value. But here I want to check either 
radio button "one" or "two" based on the variable "check1". I need to use 
like INPUT({name:"radiolocator", type:"radio",checked:"$check1"}),

Is there a work around??

Thanks in advance !

Maheeka

-- 
You received this message because you are subscribed to the Google
Groups "Firebug" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
https://groups.google.com/forum/#!forum/firebug

Reply via email to