[jQuery] Re: Setting hidden field value in html

2009-05-21 Thread eclipseTalk
Yes, thx On May 21, 1:51 am, "Michael Geary" wrote: > Hmm... I just tried a quick and dirty test and it seemed to work the way > you'd want. > > I opened this page: > > http://docs.jquery.com/Main_Page > > And opened the Firebug console and entered these expressions in the console: > > $('#jq-pr

[jQuery] Re: Setting hidden field value in html

2009-05-20 Thread Michael Geary
Hmm... I just tried a quick and dirty test and it seemed to work the way you'd want. I opened this page: http://docs.jquery.com/Main_Page And opened the Firebug console and entered these expressions in the console: $('#jq-primarySearch').val( 'test' ); That put the expected text in the search

[jQuery] Re: Setting hidden field value in html

2009-05-20 Thread eclipseTalk
Thanks for your reply. This is what I'm trying to achieve: - I have a form where a user can select items to order - While still in the form, I use JQuery to provide a preview of the order. The text is displayed in a popup dialog. It is formatted in html. - I want to save this html preview into a

[jQuery] Re: Setting hidden field value in html

2009-05-20 Thread Michael Geary
.val(foo) sets the value attribute of the selected DOM element(s). Being an attribute, it can't contain HTML. It would be as if you had this code in your page: That wouldn't be valid HTML. I'm not sure what to suggest instead, because I'm not sure what your goal is. Could you back up a level a