使用opera mobile和firefox打开它时一切正常。但是当我用android浏览器打开它时,该功能无效。怎么解决?谢谢:))
$(document).ready(function(){
var price = document.getElementsByClassName('harga')[0];
var tax = document.getElementsByClassName('dp_per')[0];
var taxAmount = document.getElementsByClassName('dp')[0];
tax.onblur = function() {
taxAmount.value = parseFloat(price.value) * parseFloat(tax.value) / 100;
}
})(jQuery);
这是我做的: http://jsfiddle.net/mYEUP/