How to select an element so that each time a new option element is selected in the "Select from textures" field, this value is stored in a variable, and then it can be output as a numeric value?

Here is an example: http://jsfiddle.net/ad8zr/5/

The example is corrected to the correct I apologize :)

  • Are you sure this is that example? - Zhukov Roman

1 answer 1

 var texture = 0; $('#russ').change(function(){ texture = $(this).val(); });