skip to Main Content

What is the purpose of life?

How can I add a new image p tag for each of the images in the nested array. Here is what I have thus far: let arr = [{ "rebuttalid": "1684773084111", "attributes": { "name": "matt", "phone": "888-888-8888", "response": "afdadfasdfasdfasdfasdfasfdasdfasdfasdfasdfasdfasfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfasdfsadfasdfasdfasdfa", "creation":…

VIEW QUESTION

Show/hide field with jQuery

Is it possible to hide the 'Please specify...' field when I click 'No' after clicking 'Yes'? $(document).ready(function() { var policeInvolvedYes = $('input[name="policeInvolved"][value="yes"]'); var policeDetailsGroup = $('#policeDetailsGroup'); var policeDetails = $('#policeDetails'); function updatePoliceDetailsField() { if (policeInvolvedYes.is(':checked')) { policeDetailsGroup.show(); policeDetails.prop('required', true); }…

VIEW QUESTION
Back To Top
Search