Response title
This is preview!
<script language="javascript" type="text/javascript">
jQuery(document).ready(function($) {
//see if allow comment is checked on page load
if ($('#allow_comments').is(':checked'))
{$('#comments_options').show();}
else
{$('#comments_options').hide('fast');}
//see if share or original links are checked on page load
if (($('#enable_share').is(':checked')) || ($('#enable_external_link').is(':checked')) )
{$('#position_option').show();}
else
{$('#position_option').hide('fast');}
//toggle status of allow comments on click
$('#allow_comments').click(function(){
if ($('#allow_comments').is(':checked'))
{$('#comments_options').show('fast');}
else
{$('#comments_options').hide('fast');}
});
//toggle status of share and original links on click
$('#enable_share').click(function(){
if ($('#enable_share').is(':checked'))
{$('#position_option').show('fast');}
else if ($('#enable_external_link').is(':checked'))
{$('#position_option').show('fast');}
else
{$('#position_option').hide('fast');}
});
$('#enable_external_link').click(function(){
if ($('#enable_external_link').is(':checked'))
{$('#position_option').show('fast');}
else if ($('#enable_share').is(':checked'))
{$('#position_option').show('fast');}
else
{$('#position_option').hide('fast');}
});
});
</script>
<li><input type="checkbox" name="allow_comments" value="true" id="allow_comments" > Allow comments inside Facebook<div id="comments_options"><input type="checkbox" name="require_email" value = "true"> Require Comment Authors E-mail Address</div> </li>
<li><input type="checkbox" name="enable_share" value="true" id="enable_share"> Enable "Share This Post" (in Facebook)</li><li><input type="checkbox" name="enable_external_link" value="true"checked id="enable_external_link"> Enable "view post at external site" link</li><div id="position_option"><li>Link Position for share button and external link button (on both single and list views):<br/><input type="radio" name="links_position" value = "top">Top <input type="radio" name="links_position" value = "bottom"> Bottom <br/></li></div>
© 2013 jQuery Foundation
Sponsored by and others.