I have an XML Data library of items.
What I need a javascript function that deletes a selected element on a button click.
Here is the structure:
<items>
<item>
<Id>1</Id>
<Nr>1</Nr>
<Name>Title 1</Name>
<Description>Description 1</Description>
<SelectedItemOpt1>Option 1.0</SelectedItemOpt1>
<SelectedItemOpt2>Option 1.1</SelectedItemOpt2>
<SelectedItemOpt3>Option 1.2</SelectedItemOpt3>
<SelectedItemType>Option 1.3</SelectedItemType>
<SelectedItemPrice>Price 1</SelectedItemPrice>
<SelectedDrinkType>Drink 1</SelectedDrinkType>
<SelectedItemIng>Ing Type 1</SelectedItemIng>
<Note>Note 1</Note>
<ItemQty>1</ItemQty>
</item>
<item>
<Id>2</Id>
<Nr>2</Nr>
<Name>Title 2</Name>
<Description>Description 2</Description>
<SelectedItemOpt1>Option 2.0</SelectedItemOpt1>
<SelectedItemOpt2>Option 2.1</SelectedItemOpt2>
<SelectedItemOpt3>Option 2.2</SelectedItemOpt3>
<SelectedItemType>Option 2.3</SelectedItemType>
<SelectedItemPrice>Price 2</SelectedItemPrice>
<SelectedDrinkType>Drink 2</SelectedDrinkType>
<SelectedItemIng>Ing Type 2</SelectedItemIng>
<Note>Note 2</Note>
<ItemQty>2</ItemQty>
</item>
<item>
<Id>3</Id>
<Nr>3</Nr>
<Name>Title 3</Name>
<Description>Description 3</Description>
<SelectedItemOpt1>Option 3.0</SelectedItemOpt1>
<SelectedItemOpt2>Option 3.1</SelectedItemOpt2>
<SelectedItemOpt3>Option 3.2</SelectedItemOpt3>
<SelectedItemType>Option 3.3</SelectedItemType>
<SelectedItemPrice>Price 3</SelectedItemPrice>
<SelectedDrinkType>Drink 3</SelectedDrinkType>
<SelectedItemIng>Ing Type 3</SelectedItemIng>
<Note>Note 3</Note>
<ItemQty>3</ItemQty>
</item>
<item>
<Id>4</Id>
<Nr>4</Nr>
<Name>Title 5</Name>
<Description>Description 5</Description>
<SelectedItemOpt1>Option 5.0</SelectedItemOpt1>
<SelectedItemOpt2>Option 5.1</SelectedItemOpt2>
<SelectedItemOpt3>Option 5.2</SelectedItemOpt3>
<SelectedItemType>Option 5.3</SelectedItemType>
<SelectedItemPrice>Price 5</SelectedItemPrice>
<SelectedDrinkType>Drink 5</SelectedDrinkType>
<SelectedItemIng>Ing Type 5</SelectedItemIng>
<Note>Note 5</Note>
<ItemQty>5</ItemQty>
</item>
</items>
So lets say I would want to delete item with Id == 3, I click a button and remove completely from the list
Best regards
Dave
please check my profile for the javascript projects i have been completing, I can write the function for you. please PM me with the details and we can start right away.
Best Regards.
$15 USD in 0 day
5.0 (17 reviews)
4.1
4.1
5 freelancers are bidding on average $15 USD for this job
Ready to start. Very good expertise in web technologies. Can finish this project efficiently.
I have more than 9 years of experience in web technologies.
I have very good experience in development of websites and web portals like the shopping carts, banking portal, etc.
Worked on integration of various Payment Gateway into websites and implemented open source products.
I am very anxious to develop a relationship with you and I would be grateful for any opportunity to enable me to earn your confidence in our services.
I can personally assure you that your business is very meaningful to me and will receive the highest degree of attention and that your confidence in me will not be misplaced.