I have this strange problem, I never had before and it only occurs in Google Chrome browser. I have made a function to create a writebutton (that writes a value to my PLC true ajax). This is how it looks:
function makeWriteButton(id, address, value, startRefresher){
$("#" + id).click( function() {
writeData(address, value, startRefresher);
});
}
So you pass the id of your input button to that function and the function adds a click event handler, this function works perfect in IE, Firefox, Safari, Opera, but not in Chrome.
Does anyone have any suggestions or reasons why this doesn't work? and by the way this function used to work before on chrome but I don't know what I did so it's doesn't work anymore in chrome, really weird.
alertorconsole.logand see what you get! For example, inside the click event you can doalert(id);makeWriteButtonfunction, make sure youridis set$(document).ready()?