Ecco il mio codice Funziona perfettamente in tutti i browser ma non in Firefox.Perché .nernerText non funziona in Firefox?
Ho provato molte cose ma non ha funzionato affatto. Per favore qualcuno può aiutarmi su questo problema. Sto facendo qualcosa di sbagliato?
C'è qualche altro modo?
sto usando .innerText perché i valori sono provenienti da
<span class="jr-rating-wrapper-jr_stars-new-0">
4.5
</span>
non ci sono errori su console.
<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>
che errore stai ottenendo? – pj013
Hai riscontrato errori nella console? – Andy
Inoltre, quale bit di quel codice non funziona. Hai inserito dei breakpoint per vedere il punto in cui si trova prima di rompere? – Andy