...

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



fenhopi
12-15-2010, 03:18 PM
Hi!
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
}).open();
}

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?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum