I knew it .. I knew if I asked(publicly) I would figure it out .... ****************
if($('subsidiary')==undefined) { var subsidiary = new Element('input', { 'type': 'text','value': 'test','name': 'test', 'id': 'subsidiary'} ); $('form_job_some_id').insert(subsidiary); alert($F('subsidiary_".$data[orderid][$a]."')+'testafa'); } *************** There is probably a better way to do that .. if you happen to know .. please share. Jimmy On Tue, Mar 17, 2009 at 1:42 PM, Jimmy Brake <isu...@gmail.com> wrote: > Hi, > > I am trying to add a hidden form element. > > if($('subsidiary')==undefined) > { > var subsidiary = new Element('subsidiary', > { 'type': 'hidden','value': 'test','name': 'test'} ); > > alert(\$F('subsidiary')+'testafa'); > } > > When I run that code .. I get 'element is null' in firebug. > > I have dug and dug on google .. (my assumption is that this must have been > written about many times but I have not had any luck finding a working > example). > > Any ideas? > > Thanks! > > Jimmy > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Prototype & script.aculo.us" group. To post to this group, send email to prototype-scriptaculous@googlegroups.com To unsubscribe from this group, send email to prototype-scriptaculous+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/prototype-scriptaculous?hl=en -~----------~----~----~----~------~----~------~--~---