This is the existing statement:
var subs_array = ;
[login to view URL]();
[login to view URL]( $(this).data('user-subscription') );
<!-- the html -->
<a href='#' class="sub" data-user-subscription='Magazine #1'>Subscribe to #1</a>
<a href='#' class="sub" data-user-subscription='Magazine #2'>Subscribe to #2</a>
<a href='#' class="sub" data-user-subscription='Magazine #3'>Subscribe to #3</a>
<input type="text" class="form-control" id="sub" size="50" value="" placeholder="Magazine #1, Magazine #2, Magazine #3">
When you click on the link, it adds the value into the array and it is added into the input field but if you click again, it does not remove the value.
Modify the above statement so when you click on a link the first time, it adds the value into the array but if you click again, it removes the value.
46 freelancer đang chào giá trung bình $17 cho công việc này
We are the team that visualize, pens down ideas, adds in the essential ingredient of creativity and imagination and cooks up that perfect dish called brand. Lets discuss in details.
Hi , I have completed this project at my end.I am new at freelancing,dont know how exactaly write [login to view URL] my first bid. I have studied your requirement ,its very simple for me ,has been done. Thanks