function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
parashermohitparashermohit 

getting undefined in alert



<apex:selectlist id="select-from"><selectoptions value="{!options}"></selectoptions></apex:selectlist>


$('#select-from :elected').val() giving undefined.
while accessing selectlist id it showing the [Object object],but when i am trying to print selected option value its showing  "Undefined".


Satish_SFDCSatish_SFDC
Is that a typo:
$('#select-from :elected').val()

It should be 
$('#select-from :selected').val()

Regards,
Satish Kumar
parashermohitparashermohit
i am using same as :  $('#select-from :selected').val() ,sry for typing mistake.
still same error i am getting