I have the following code :
<s:DropDownList x="160" y="26" id="projectList" prompt="Select A Project" width="155"
wsObj is my webservice object and this webservice function returns an array of all the projects from my database. The array is of the form array('id'=>integer,'name'=>'Name of Project').
When i click a button, I want to get the id field for the selected value. How do i get it ?
Yes thanks .. it was as simple as that.. i kept trying with projectList.selectedItem.@id .. and it kept throwing an error ...thanks anyways
What does the error say ? Can you debug I am not sure if selectedItem is set by
default unless you bind to something ...