<分区>
这是我的代码 它在所有浏览器中都运行良好但在 Firefox 中则不然。
我尝试了很多东西,但根本没有用。 请有人可以帮助我解决这个问题。 难道我做错了什么。?
还有其他办法吗?
我正在使用 .innerText 因为值来自
<span class="jr-rating-wrapper-jr_stars-new-0">
4.5
</span>
控制台没有报错。
<script type="text/javascript">
jQuery('#submitButton').click(function(){
var PostStartone = document.getElementById('jr-rating-wrapper-jr_stars-new-0').innerText;
var PostStarSec = document.getElementById('jr-rating-wrapper-jr_stars-new-1').innerText;
var PostStarThird = document.getElementById('jr-rating-wrapper-jr_stars-new-2').innerText;
var PostCapVal = document.getElementById('code').value;
var PostRBVal = "";
var selected = jQuery("div.jr_fieldDiv input[type='radio']:checked");
PostRBVal = selected.val();
jQuery.post("http://xyz/x/Update.php", {
GetStarOneValue : PostStartone ,
GetStarSecValue : PostStarSec ,
GetStarThirdValue : PostStarThird ,
GetCaptchValue : PostCapVal,
GetRadioBTNValue : PostRBVal});
});
</script>