Code: Select all
Docker Compose[/b][b] [url=#][i][/i][/url]
No
Yes
Docker Compose Command[/b]
$(document).ready(function() {
// Function to show/hide the Docker Compose Command input based on the selected radio button
function showdccommand() {
var selectedValue = $('input[name="useDockerCompose"]:checked').val();
console.log("Selected value: " + selectedValue); // For debugging
if (selectedValue === "false") {
$('.dccommandtext').hide();
} else {
$('.dccommandtext').show();
}
}
// Attach the 'change' event listener to the radio buttons
$('input[name="useDockerCompose"]').on('change', showdccommand);
// Trigger show/hide on page load to set the initial state based on the default selected value
showdccommand();
});