I am currently working on a custom Wordpress plugin that requires the user to create a list in the form, and therefore, to help them fill out their list, I have implemented Wordpress Thickbox. I did a Thickbox mapping with the content that I would like, however what I am trying my best to do is return the data to its original form.
The form of the original looks like this:
<input name="input_that_wants_data" id="input_for_data" type="text" />
<a href="#TB_inline?width=600&height=550&inlineId=my-content-id" class="thickbox">Click Here for Modal</a>
As expected, any form. Basically, I want the information from the modal object to pass my string back to input_for_data p>
In the code inside the module there are several rows of the table, for example:
<td><input type="checkbox" class="modal_checkbox_class" value="'.$data->value.'"></td>
Basically, what I would like to do is build an array of values โโfor each clicked checkbox, and then use the split Javascript function to turn it into a string that I would return to an input field outside of modality.
Any help is appreciated. I would prefer a Javascript / jQuery solution for this
source
share