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

How to get selector string with jQuery?

Let say I have JSON like this: { "foobar": "data foobar", "foo": "data foo", "bar": "data bar", "baz": "data baz", "qux": "data qux", "quux": "data quux", "corge": "data corge", "grault": "data grault", "garply": "data garply", "waldo": "data waldo", "fred": "data…

VIEW QUESTION
Back To Top
Search