View Full Version : How to put a form within a function?

12-15-2010, 04:18 PM
First of, I want to say that I don't have a lot of knowledge with js, so please bare with me.

I have this function:

function formFunction() {
return new LightFace({
title: $('demo1title').value,
content: $('demo1content').value,
draggable: true

It is a part of a code that displays a small on-page window. However, within that code I want to have a form that posts $('demo1title').value as a hidden value. Any idea how to do this?