Basically, if you want to check one radio button of a set, you MUST pass the value as an array:
1 |
$('input:radio[name=cols]').val(['Site']); |
Basically, if you want to check one radio button of a set, you MUST pass the value as an array:
1 |
$('input:radio[name=cols]').val(['Site']); |
In fancyBox 2 I use topRatio : 0, this propery move fancyBox at top, then I used jQuery().css() to put it where I want. Example:
1 2 3 4 5 6 7 8 9 10 11 |
$("#myfancy").fancybox({ maxWidth : 800, maxHeight : 600, fitToView : true, autoSize : false, topRatio : 0, hideOnOverlayClick : false, afterShow: function(){ jQuery(".fancybox-wrap").css({"top":0, "margin-top":"100px"}); } }); |
1 2 3 |
<script type="text/javascript"> parent.top.jQuery('div#test_div').html('testing parent'); </script> |