jQuery processes the data attribute and converts the values into strings.
Adding processData: false to your options object fixes the error, but I’m not sure if it fixes the problem.
Demo: http://jsfiddle.net/eHmSr/1/
jQuery processes the data attribute and converts the values into strings.
Adding processData: false to your options object fixes the error, but I’m not sure if it fixes the problem.
Demo: http://jsfiddle.net/eHmSr/1/