I’m using jquery ajax. The server returns a JSON object and I am fetching the array.
Everything works fine in FF, of course, but somehow when i try to use this syntax:
$('#edituserLink').attr("onClick","edit('"+user[0]['USER_ID']+"');");
the onClick function wont have the value as an argument. Why?
Why aren’t you using the standard
.bind()method?Some people prefer the shorthand form:
but personally I regard that as a bad style. (Does the concept bad style even exist!? Contradictio in terminis!)