Cannot perform .change method on horizontal radio buttons
Posted: 29 Jul 2015
I'm using the following code to make my Radio buttons horizontal per another thread on here:
//Horizontal Radio Buttons
var rows = fd.field('Action').control()._el().find('table tr td');
fd.field('Action')
.control()
._el()
.find('table > tbody')
.empty()
.append($('<tr />').append(rows));
However, when I use this code, I can no longer perform a .change Method on the field in question:
//Test change method
fd.field('Action').change(function() {
z = fd.field('Action').value();
alert(z);
});
However, when I remove the horizontal code, the change method works as intended. Any way around this?
//Horizontal Radio Buttons
var rows = fd.field('Action').control()._el().find('table tr td');
fd.field('Action')
.control()
._el()
.find('table > tbody')
.empty()
.append($('<tr />').append(rows));
However, when I use this code, I can no longer perform a .change Method on the field in question:
//Test change method
fd.field('Action').change(function() {
z = fd.field('Action').value();
alert(z);
});
However, when I remove the horizontal code, the change method works as intended. Any way around this?