How can I serialize the values of checked checkboxes in an iFrame into a hidden form field on clicki

Posted by Frank Bailey on Stack Overflow See other posts from Stack Overflow or by Frank Bailey
Published on 2010-05-07T10:10:00Z Indexed on 2010/05/07 10:28 UTC
Read the original article Hit count: 277

Filed under:
|
|
|
|

I have an iFrame like so:

<iframe width="100%" frameborder="0" height="470" allowtransparency="true" name="productframe" id="productframe" style="border-bottom:1px solid #eee"></iframe>

The iframe contains several line items drawn from a sql server db, and I can check any of the checkboxes I want to perform a task with - in this case delete them. I have a button in the parent document that says "Delete selected", and I'd like to be able to click this button and populate a hidden field in my parent page with the values of the selected checkboxes in the child iframe.

My checkboxes look like this:

<input id="Checkbox1" type="checkbox" value="47" title="Select this row" name="selectItem"/>

I have an instance of jquery on my parent page so I can make use of jquery selectors, I just have no clue as to the syntax needed to do this.

Thanks in advance to anyone who can help me on this.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about iframe