Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (countClicks == 3){
- var r4, prox = false;
- if (document.getElementById('r7').checked || document.getElementById('r8').checked ||
- document.getElementById('r9').checked){
- prox = true;
- if (document.getElementById('r7').checked) {
- r4 = document.getElementById('r7').value;
- }
- else if (document.getElementById('r8').checked) {
- r4 = document.getElementById('r8').value;
- }
- else if (document.getElementById('r9').checked) {
- r4 = document.getElementById('r9').value;
- }
- }
- if (prox){
- $("#carouselExampleControls").carousel("next");
- $.ajax({
- type:"POST",
- url:"save.php",
- data: {cont: countClicks,r4:r4},
- success: function(data){
- }
- });
- countClicks = 4;
- }
- else{
- countClicks = 3;
- alert("Please select an option to continue");
- }
- } //End of 3
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement