I have the following dynamically generated array:
var myArray = ("0% { left:74px; top:202px; }" , "44% { left:427px; top:122px; }", "0% { font-size:11px; }", "55% { font-size:49px; }" );
There are 2 entries that have the same start value: 0%. How can I find this and combine it together:
form:
0% { left:74px; top:202px; },
0% { font-size:11px; },
to
0% { left:74px; top:202px; font-size:11px;},
Thank you
Edited the code to a valid array.
oh, I see.. you’re printing your array and this is what you’re getting, right?
In that case…
I didn’t test this, but something to this effect 🙂
Oh.. you edited. What you have now is definitely not an array… but you’re closer than you were before.
I think array is a reserved word…