I have a select that uses remote_function (AJAX), but I am
having trouble getting the value of the selected item back.
The code is pretty simple:
<%=select("tech", "tech_id", ["opt1",
"opt2"],
{:prompt=>true},
{''onchange''=> remote_function(
:update => ''select_div'',
:url => {
:action=> ''select_group'',
:with => "''id='' + this.value"
}
)
})%>
I have made several attempts at defining :with, but
nothing returns a value or id of the selection.
For example, the above just returns: "''id='' +
this.value"
TIA
--
Jim Freeze