Thursday, July 2, 2009

jQuery issue

I have to do a survey that will dim the bg and popup a box to ask questions.

I use thickbox to do the effect, but to match the ui, I have to edit the js and css to remove the padding.

Problem:
"nested form element" which occurs in dynamic page so that I cannot append item and serialize the form correctly.

Solution:
Use a temp. form to solve the problem:
$("<form></form>").append($("#form_inside")).serialize()

No comments: