Posts by negojeferson • 46 points
2 posts
-
2
votes2
answers190
viewsA: Using a select value with Javascript
Opa, the options id, must be in select, not option. Thus: <select id="vidas"> <option value="vidas1">Mais 1000</option> <option value="vidas2">Mais 5000</option>…
-
1
votes1
answer25
viewsA: Working with arrays
This {tag: "teste"} is a json object, not an array. If you receive a named object with this value, then just look for the field name: var a = xpto.tag. Hugs and follows the leader.…