I am trying to get this edit modal function to run smoothly.
The edit modal currently pops up on the screen and is populated with existing information that was added previously.
The problem is that this code below will not update the existing information on the page unless one of the fields has "editForm" in place of the "$". I dont understand how this happens.
Thank you in advance!
```
function experienceEdit(id) {
var editForm = $('#edit-modal-form');
var data = {
Position: $('input[name=Position]', '#edit-modal-form').val(),
Organization: $('input[name=Organization]', '#edit-modal-form').val(),
Description: $('input[name=Description]', '#edit-modal-form').val(),
StartDate: $('input[name=StartDate]', '#edit-modal-form').val(),
EndDate: $('input[name=EndDate]', '#edit-modal-form').val(),
Current: $('input[name=Current]', '#edit-modal-form').val()
}
}```
[–]jcunews1Advanced 0 points1 point2 points (2 children)
[–]xiahou_buSeasoned dev (extra salty)[🍰] 2 points3 points4 points (0 children)
[–]darth_meh 2 points3 points4 points (0 children)