I have couple of radio buttons from bootstrap like below.
<div class="btn-group" data-toggle="buttons">
<label class="btn btn-primary">
<input type="radio" name="options" id="option1"> Option 1
</label>
<label class="btn btn-primary">
<input type="radio" name="options" id="option2"> Option 2
</label>
<label class="btn btn-primary">
<input type="radio" name="options" id="option3"> Option 3
</label>
</div>
How can I perform specific action for each radio button in jQuery?
for instance:
if option1 is checked -> load "html1.html"
if option2 is checked -> load "html2.html"
And I use this code to load an html code in specific div :
<script>
$(document).ready(function(){
$('#main-content').load('skill-temp.html');
});
</script>