
I need help with array manipulation
- or -
Post a project like this1405
$23/hr
- Posted:
- Proposals: 8
- Remote
- #3516071
- Completed
⭐ TOP RATED ⭐ Graphic Designer| WordPress / WIX | 3D Architecture | Video Editing |Photoshop Expert

Experienced Web & App Developer | PHP/Java/JQuery/Ajax/MySQL/WordPress/CSS5/HTML5

Graphic Designer |Experienced Web Designer | Video/Audio Editor | PowerPoint/Keynote | Content Writer |

19286757855823306174514542343141669089302608366919175
Description
Experience Level: Entry
I have a form that has a set of 10 input fields; when someone removes value from the input field, a button span is appended after the input and when end user clicks this, it triggers an event which currently only console.logs an array with the current values that are visible on the page.
I need to manipulate the array so that the non empty values inside the array are pushed to the top of the array in order, while leaving the index position and names alone since those correspond to my IDs in the form that I am modifying. In the screenshot as an example, I would need index 0 to have the value '2' and so on; the solution should leave the original array alone and show the manipulated array in a new array.
I need to manipulate the array so that the non empty values inside the array are pushed to the top of the array in order, while leaving the index position and names alone since those correspond to my IDs in the form that I am modifying. In the screenshot as an example, I would need index 0 to have the value '2' and so on; the solution should leave the original array alone and show the manipulated array in a new array.
Brandon M.
80% (8)Projects Completed
9
Freelancers worked with
8
Projects awarded
24%
Last project
26 Feb 2022
United States
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-

Hi, this job is still active?
-
Which programming language you are using?
10128761012661
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies