JSFiddle - React, Tailwind, and code Playground
by Jon Lambell
HTML
<input type="radio" value="Test" data-customradio="true" />
CSS
.customradio {
width:400px;
background-color: red;
}
JavaScript
var Next = Next || {};
Next.UI = Next.UI || {};
Next.UI.RadioButton = function(){
var _ = {
Init: function(){
},
Config:{
foo:null
},
ShowAlert:function(){
alert(_.Config.foo);
}
}
return {
Init: _.Init,
ShowAlert: _.ShowAlert
};
}();
$(function() {
$("input[type=radio][data-customradio=true]").each(function(i, v) {
var $container = $("<div />").addClass("customradio");
});
});