我想让按钮在最后一个收音机时转到新页面
I want to make the button goes to a new page when last radio
观看直播代码
http://jsfiddle.net/fo3660xe/
完全编码并根据另一个选项我可以在重定向之前更改文本可以与文本的其余部分不同可以添加按钮并隐藏所有页面并仅显示在紧接重定向之前的最后一页
<p class="text" id="first_one">
<span>لقد تم دعوتك للدخول فى تحدى مع احد ابطالنا</span>
<span class='poll'>
<span>
<input type="radio" name="radio" id="radio1" class="radio" checked/>
<label for="radio1">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio2" class="radio"/>
<label for="radio2">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio3" class="radio"/>
<label for="radio3">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio4" class="radio"/>
<label for="radio4">1</label>
</span>
</span>
<br/><br/>
</p>
<p class="text" id="first_one">
<span>لقد تم دعوتك للدخول فى تحدى مع احد ابطالنا</span>
<span class='poll'>
<span>
<input type="radio" name="radio" id="radio1" class="radio" checked/>
<label for="radio1">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio2" class="radio"/>
<label for="radio2">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio3" class="radio"/>
<label for="radio3">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio4" class="radio"/>
<label for="radio4">1</label>
</span>
</span>
<br/><br/>
</p>
和jquery
$("#slider1next").click(function() {
var $next = $(".text:visible").hide().next('p');
$next.length ? $next.show() : window.location.replace('start.html');
});
用这个替换你的jquery。
$("#slider1next").click(function() {
var $next = $(".text:visible").hide().next('p');
$next.length ? $next.show() : window.location.replace('http://jsfiddle.net/');
});
观看直播代码 http://jsfiddle.net/fo3660xe/
完全编码并根据另一个选项我可以在重定向之前更改文本可以与文本的其余部分不同可以添加按钮并隐藏所有页面并仅显示在紧接重定向之前的最后一页
<p class="text" id="first_one">
<span>لقد تم دعوتك للدخول فى تحدى مع احد ابطالنا</span>
<span class='poll'>
<span>
<input type="radio" name="radio" id="radio1" class="radio" checked/>
<label for="radio1">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio2" class="radio"/>
<label for="radio2">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio3" class="radio"/>
<label for="radio3">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio4" class="radio"/>
<label for="radio4">1</label>
</span>
</span>
<br/><br/>
</p>
<p class="text" id="first_one">
<span>لقد تم دعوتك للدخول فى تحدى مع احد ابطالنا</span>
<span class='poll'>
<span>
<input type="radio" name="radio" id="radio1" class="radio" checked/>
<label for="radio1">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio2" class="radio"/>
<label for="radio2">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio3" class="radio"/>
<label for="radio3">1</label>
</span>
<span>
<input type="radio" name="radio" id="radio4" class="radio"/>
<label for="radio4">1</label>
</span>
</span>
<br/><br/>
</p>
和jquery
$("#slider1next").click(function() {
var $next = $(".text:visible").hide().next('p');
$next.length ? $next.show() : window.location.replace('start.html');
});
用这个替换你的jquery。
$("#slider1next").click(function() {
var $next = $(".text:visible").hide().next('p');
$next.length ? $next.show() : window.location.replace('http://jsfiddle.net/');
});