Problem about add attribute to tag
Hi all
I am using JQuery library to build may website. I need add a attribute to tag and we can control the order of this attribute.
Example: I want to add wmode attribute before height attribute. I use code below:
$('embed').attr('wmode', 'transparent');
and this is result:
<embed height="300" width="300" allowfullscreen="true" allowscriptaccess="always" wmode="transparent">
If anyone has experencies about this problem. Please help me!!!