Hi, i’m working with a date_select field, and I’ve got the following
The date_select outputs something that looks like:2001
I’m used to using prototype to access form elements, but I seem to be
missing something here.
I’m trying to do:
var dyear = $F(‘widget[designedon(1i)]’);
Basically, i want to get/set the value of the select boxes based on
from other form field elements – “pre-filling” so to speak. Usually,
all else fails, I just give my form tags an ID, and just use $() to
them. However, I dont see how to do that in rails.
Anyway, help with this probably fairly trivial misunderstanding of $F()
$() would be greatly appreciated.