Just a sample Question why cannot move Radio Button to Tabs
Just follow all the same as the course, I can move everything except the radio button into Tab
https://gist.github.com/AppGiniCourse/4 ... b811f04d65
How to move Radio button into Tab?
How to move Radio button into Tab
How to move Radio button into Tab
- Attachments
-
- radio into tab.jpg (89.86 KiB) Viewed 2543 times
Re: How to move Radio button into Tab
can you post your code here please?
Re: How to move Radio button into Tab
The instructor tells me the answer as follow
Radio buttons can be moved in almost the same manner with just one minor difference: append a '0' (zero character) to the name of the field in your code ... so instead of:
$j('#CompanyName').parents('.form-group').appendTo('#customer-info');
It should become:
$j('#CompanyName0').parents('.form-group').appendTo('#customer-info');
Explanation: Each radio button choice gets an id value the same as the field name + an index starting with 0.
Radio buttons can be moved in almost the same manner with just one minor difference: append a '0' (zero character) to the name of the field in your code ... so instead of:
$j('#CompanyName').parents('.form-group').appendTo('#customer-info');
It should become:
$j('#CompanyName0').parents('.form-group').appendTo('#customer-info');
Explanation: Each radio button choice gets an id value the same as the field name + an index starting with 0.