Associative array with jQuery
My goal is to create a "dynamic basket". Each element has either an input
type for once "/ radio / checkbox number" "ticked / selected" to display a
small summary next. Like "100 Mb - Price: 30 / month."
So I decided to start designing an Array. Everything works great until I
get when adding new elements eg "unlimited phone Price: xx / month."
Since the summary is not to be placed in the same place, so I need to
create a table top with eg "subscription-flow layer" - "fixed-telephony">
the speed info -> info Telephonies fixed etc.. All for the summary ...
Here u can see the Array push
var objet = new Array(id, nouveau_libelle, prix, quantite, type);
Arrays.push(objet);
And as a script is often more comprehensible than words, here:
http://jsfiddle.net/BioSs/trRjd/
No comments:
Post a Comment