I'm trying to get the form id and pass it dynamicaly into a script:
jQuery(document).ready(function() {
var theFormID = jQuery(parent.document).find('.theformclass').find('input[name="form_id"]').val();
});
<script type = "text/javascript" >
jQuery(document).ready(function() {
jQuery('.somebutton').click(function(event) {
jQuery(parent.document).find('#abc_HERE-IS-WHERE-I-NEED-THE-RETURNED-VALUE_number_103').fadeToggle("slow", "linear");
jQuery('#closeShare').removeClass("hide");
jQuery('#closeShare').addClass("show");
});
});
any help with that? thank you!