Welcome Guest, Not a member yet? Register   Sign In
CI validation radio buttons with Ajax
#1

[eluser]Wonder Woman[/eluser]
It works perfectly apart from my radio buttons! When I submit the form, they're not repopulating Sad I have checked in my controller and they're getting the value...I just don't know what has gone wrong...

view:

Code:
form_label('Joint application?:');
form_radio('joint_application', '1', set_radio('joint_application', '1', FALSE), 'class="joint_application"').' Yes';
form_radio('joint_application', '2', set_radio('joint_application', '2', TRUE), 'class="joint_application"').' No';
#2

[eluser]Wonder Woman[/eluser]
...actually they're not getting the value Sad
#3

[eluser]LuckyFella73[/eluser]
Not sure if it's the problem but according to the userguide
you don't set "FALSE" to the seocond element. Only "TRUE" for
the default one.




Theme © iAndrew 2016 - Forum software by © MyBB