Skip to content

Instantly share code, notes, and snippets.

@e1senh0rn
Created August 17, 2009 12:24
Show Gist options
  • Select an option

  • Save e1senh0rn/169096 to your computer and use it in GitHub Desktop.

Select an option

Save e1senh0rn/169096 to your computer and use it in GitHub Desktop.
<script src="/js/jquery.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
var $jq = jQuery.noConflict();
$jq(document).ready(function(){
$jq("input[name^='STGenres']").each(function(){
$jq(this).change(function(){
$jq(this).parent().prevAll("input[name^='STGenre_groups']").attr('checked', true);
});
});
});
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment