i am new in javascript and jquery, i tried many things that is found in site like related questions but i could not solve my problem.
How can i take a value from this piece of html ?
<div class="frmPillIdentifier-field-fmt">
<select id="scolor" name="scolor" size="1">
<option id="colorOption" value="8">Kirli Beyaz</option>
</select>
How can get a value in option tag?
i tried something like this but it didnt solve my problem :
$colorValue = jQuery('#frmPillIdentifier-field-fmt > select[name=scolor] > option[id=colorOption]');
//$colorValue = $('#colorOption').val();
$shapeValue = $('#shapeOption').val();
console.log("Renkler"+$colorValue.val()+$shapeValue);
Console Error is like this " = Renklerundefinedundefined "