If, not how is this properly assigned?
The reason for this is I wrote a script that uses a Select <Option value=" " with a number to calculate the price, however my shopping cart script requires a separate Name in the value and since you cannot have Value1=" " and Value2=" " I thought I might be able to use an Attribute data- to make this happen.
Here is a jsbin of a working code of my project, so you can see the output, this works and displays the Length and Price, however because there is no Value of FontName, this fails my shopping cart
My second jsbin option with my revisions that I am hoping to get working:
This option I have changed the option value and added a data- attribute, however it fails to get the Length and Price.
In this second example with where am I going wrong with the getAttribute?