0

How to find and add/substract numbers using jquery?

Please help me. I can't create a shopping list using jquery, which is similar to to-do list. But I can't calculate the total price of items, which I added. I used parseInt() method but it gives me NaN or 0. What can I do? https://code.sololearn.com/WDg07908723Q/?ref=app

23rd Jul 2019, 8:01 PM
Pranab Ranjan Mandal
Pranab Ranjan Mandal - avatar
2 ответов
0
Can't understand Tarek sir! Because your id's are different from mine. It so difficult to find the logics. Can you simplify this?
24th Jul 2019, 4:39 AM
Pranab Ranjan Mandal
Pranab Ranjan Mandal - avatar
0
Ok! Now I know how to add or subtract numbers using jquery. parseInt() method is good, just a syntax error causing my code to return NaN or sometimes 0. But a new problem arises. Hoping this will also go away!!!☺️
27th Jul 2019, 8:59 PM
Pranab Ranjan Mandal
Pranab Ranjan Mandal - avatar