I have created a div, something similar to below. Which should create 2 radio button, each button having its independent value.
<div>
<input type="radio" name="colors" value="green"
data-dojo-type="dijit/form/RadioButton"> Green
<input type="radio" name="colors" value="red"
data-dojo-type="dijit/form/RadioButton"> Red
</div>
I need to create a controller, which on click, should call a function where i can write my relevant code.
I am new to Dojo framework. Can anyone please help me out.
In the html declare:
Then you could create a function like:
call the function to create each radio, I hope this would help you, also you could see the documentation : https://dojotoolkit.org/reference-guide/1.10/dijit/form/RadioButton.html