मेरा कोड है यह सभी ब्राउज़रों में सही काम कर रहा है लेकिन फ़ायरफ़ॉक्स में नहीं।क्यों है .innerText फ़ायरफ़ॉक्स में काम नहीं कर रहा है?
मैंने कई चीजों की कोशिश की लेकिन बिल्कुल काम नहीं किया। कृपया कोई इस मुद्दे पर मेरी सहायता कर सकता है। क्या मैं कुछ गलत कर रहा हूं।
क्या कोई अन्य तरीका है?
मैं .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>
आपको क्या त्रुटि मिल रही है? – pj013
क्या आपको कंसोल में कोई त्रुटि मिल रही है? – Andy
इसके अलावा, उस कोड का कौन सा हिस्सा काम नहीं कर रहा है। क्या आप इसे तोड़ने से पहले बिंदु को देखने के लिए ब्रेकपॉइंट डालते हैं? – Andy