What do you want to save?
Add Code snippet
New code examples
-
Javascript 2022-01-28 21:45:51
image image using next and previous button in javascript
<div style="display:block"><img id="largeimg" data-nr="1" src="resources/images/larges/01.jpg"></div> <img data-nr="1" class="clickable" style='cursor:pointer;' src="re... Add solution -
Javascript 2022-01-26 08:17:48
jquery mutationobserver
// The node to be monitored var target = $( "#content" )[0]; // Create an observer instance var observer = new MutationObserver(function( mutations ) { mutations.forEach(function( mutation ) { var newNodes = mutation.addedNodes; // DOM N... Add solution -
Other 2022-01-23 07:50:11
checkbox tag in array rails
<%= form_tag(medication_select_path, method: 'put', :id => 'medication-select') do %> <% @medications.each do |medication| %> <%= check_box_tag "medications[]", medication.id -%> <% end %> <% end %> Add solution -
Javascript 2022-01-22 09:45:29
jest multiple test cases
const add = (a, b) => a + b; const cases = [[2, 2, 4], [-2, -2, -4], [2, -2, 0]]; describe("'add' utility", () => { test.each(cases)( "given %p and %p as arguments, returns %p", (firstArg, secondArg, expectedResult) =... Add solution -
Javascript 2022-01-22 08:20:12
datatables boolean column checkbox
// Handle form submission event $('#frm-example').on('submit', function(e){ var form = this; // Iterate over all checkboxes in the table table.$('input[type="checkbox"]').each(function(){ // If checkbox doesn't exist in DOM ... Add solution