I have a javascript like following acting bizarre. Following works fine on my development machine in all three browsers chrome, FF and safari. But when I checked on anyone else machine browsers this value update does not work at all. Does anyone know how would I able to replicate this issue on my local ?
my browser test
Browser name = Chrome Full version = 51.0.2704.103 Major version = 51 navigator.appName = Netscape navigator.userAgent = Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36
jQuery(function(){
$(document).on("click", "#history span", function() {
var field_id = $(this).attr('history-id');
$('#'+field_id).val('some new value');
})
});
You are missing an ending parenthesis
jQuery(function(){
$(document).on("click", "#body", function() {
console.log('sup world!')
}) // ending paren
});
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.