Response title
This is preview!
$("#input_email").val()
and the field looks like:
<input name="email" id="input_email" type="text" class="txtField01" value="Email Address" />
It works only if I refresh the page first, and that is not nice :)
Can someone help?
<script type="text/javascript" src="js/jquery.fancybox-1.3.0.js"></script>
<script type="text/javascript">then I have the form where is the
$(document).ready(function() {
$("#various3").fancybox({
'width' : 800,
'height' : 500,
'autoScale' : false,
'transitionIn' : 'none',
'transitionOut' : 'none',
'href' : $("#various3").attr("href") + "?email=" + $("#input_email").val(),
'type' : 'iframe',
});
});
</script>
<input name="email" id="input_email" type="text" class="txtField01" value="Email Address" /> as the only field ,
and the link to click and subscribe:
<div style="display:block;"><a href="blabla.php" id="various3">Click to subscribe</a></div>
</form>
oh, there is he href:
'href' : $("#various3").attr("href") + "?email=" + $("#input_email").val(),
© 2013 jQuery Foundation
Sponsored by and others.