Don't use the jQuery .data() method. Use .attr() instead. · HackerTrans