Page 1 of 1

How to move Radio button into Tab

Posted: 2017-10-29 11:56
by Sai chi
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?

Re: How to move Radio button into Tab

Posted: 2017-11-13 07:47
by Abeer
can you post your code here please?

Re: How to move Radio button into Tab

Posted: 2017-11-13 09:41
by Sai chi
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.