Displaying 1 result from an estimated 1 matches for "maedchen".
Did you mean:
machen
2007 Sep 17
1
observe_field and :function
...perform a more complicated processing and I thought it
would be nice to do something like that:
<script type="text/javascript">
function handle_gender_change(element, value)
{
(value == ''2'') ?
$(''record_ohrmarke'').value = ''ein Maedchen'':
$(''record_ohrmarke'').value = ''ein Bub'';
};
</script>
.....
....
<%= observe_field ''select_gender'', {:function =>
"handle_gender_change(element,value);"} %>
However, that results in an js error tell...