this is for checkbox checkall in a table $(function () { $('.checkall').click(function () { $(this).closest('table').find(':checkbox').prop('checked', this.checked); }); }); <input type="checkbox" class="checkall">
Posts
Showing posts from October, 2013
- Get link
- X
- Other Apps
this is for group facebox images $(document).ready(function() { $("a[rel=example_group]").fancybox({ 'transitionIn' : 'none', 'transitionOut' : 'none', 'titlePosition' : 'over', 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) { return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>'; } }); });
- Get link
- X
- Other Apps
this code for edit the inline <script> $(function() { $(".clickcal4").editable("ajax/filename.php", { indicator : "<img src='../images/indicator.gif'>", tooltip : "Click to edit...", style : "inherit", }); }); </script> function for just show the year and month $(function() { $('#datepicker1').datepicker( { changeMonth: true, changeYear: true, showButtonPanel: true, dateFormat: 'yy-mm', onClose: function(dateText, inst) { var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val(); v...