I have add JS code in the correct view (checkout / show_block_shipping.php) to change the state of the required attribute in some case.
450
If it is plain JavaScript, you can include the JS file using script tag. [code]<script src='your_required_file.js'></script> <script src='your_main.js'></script> [/code]The above code works for all JavaScript libraries.
However, the validation with the required attribute doesn’t work sometimes due to the lake of proper markup. This allows us to select only one radio button at once and apply the required attribute to the whole group. Let’s see how this is done. Create HTML¶ Use a