I want to get x values from select option to change x in css style with javascript, so far i use url variable to change it. here the example:
<select name='X'>
<option value = '1'>1 col</option>
<option value = '2'>2 col</option>
<option value = '3'>3 col</option>
<option value = '4'>4 col</option>
<option value = '5'>5 col</option>
</select>
css:
tr:nth-child(Xn+1) {
clear: left;
}
full example please check JSFiddle
I want to use Javascript to change x values, anyone can help me?