0

I want to add checkbox and text in textarea

I want checkbox text and text to be added in textarea. Checkbox text is adding but text is not adding there. https://code.sololearn.com/W5CKGDNS3910/?ref=app

6th Oct 2021, 12:19 PM
Salman B
Salman B - avatar
20 Respostas
+ 1
Salman B, you changed your mind concerning what? What do you mean by testing?
8th Oct 2021, 5:44 PM
ボリス
+ 3
You are using jQuery ,but you don't include jQuery library.That's why it's showing error.
6th Oct 2021, 2:07 PM
Myo Thuzar
Myo Thuzar - avatar
+ 3
I don't know what you want. And you look misunderstand the usage of Textarea .In fact, textarea is not for displaying output.It's the multiple line input control.To get user input.
6th Oct 2021, 2:41 PM
Myo Thuzar
Myo Thuzar - avatar
+ 3
Now, showing It's what you want? https://code.sololearn.com/WcD0ev27j9me/?ref=app
6th Oct 2021, 3:00 PM
Myo Thuzar
Myo Thuzar - avatar
+ 1
textarea is meant for writing text, why you want a checkbox inside a textarea? what is on your mind? I don't get your idea ...
6th Oct 2021, 12:42 PM
Ipang
+ 1
When someone click that checkbox its text should go inside textarea. I dont know why in sololearn it is showing an error but in my ide is it working but the text which is kms driven when someone enter any km it should go inside textarea aswell. Once it will be done i will surely share my idea with you.
6th Oct 2021, 12:51 PM
Salman B
Salman B - avatar
+ 1
Oh ok. I understand. Anyway help me with the code please. You understand whats exactly i am looking for. Right?
6th Oct 2021, 2:08 PM
Salman B
Salman B - avatar
+ 1
I just help you in finding the reason of showing error.The other calculation is on you. btw, your css code and html aren't related at all. so I deleted it https://code.sololearn.com/WcD0ev27j9me/?ref=app
6th Oct 2021, 2:17 PM
Myo Thuzar
Myo Thuzar - avatar
+ 1
Well i get it what i want. But there is another thing comes up. I know i am very irritating.
6th Oct 2021, 3:52 PM
Salman B
Salman B - avatar
+ 1
Salman B, your code was so interesting, so I improved it a bit (JS -part). https://code.sololearn.com/WAIcPQovrzY7/?ref=app There are at list couple of issues we could learn: 1. If using class, check that you really using class, not id. (the price input was originally marked as id="message", and was not taken to final output). 2. messages = document.getElementsByClassName ("message") is creating the node list 'messages'. Node list value is undefined, so in order to get values of each element you need to extract them one by one from the node list and use .value method on each element separately.
7th Oct 2021, 7:12 PM
ボリス
+ 1
Are you serious.... You are to good bro. Amazing. This is exactly what i was looking for.
8th Oct 2021, 4:27 AM
Salman B
Salman B - avatar
+ 1
Salman B, if you need to use only one checkbox at a time, another option is to use <select> tag in html, to make a dropdown list, with various options to choose from. https://www.w3schools.com/tags/tag_select.asp
8th Oct 2021, 2:35 PM
ボリス
0
Kms driven is not showing in textarea.
6th Oct 2021, 2:21 PM
Salman B
Salman B - avatar
0
See. Now you can understand. I want input of Kms driven to be shown in textarea. I know textarea is not meant for this thing. I know what i am doing. Once this will complete i will share my things with you all. But first help me toh solve this thing. https://code.sololearn.com/WVBhn1OxLCt5/?ref=app
6th Oct 2021, 2:56 PM
Salman B
Salman B - avatar
0
Kms driven value / text is not showing in textarea area. Just help me in it.
6th Oct 2021, 2:57 PM
Salman B
Salman B - avatar
0
Thankyou so much. I solved it somehow. You helped me alot.
6th Oct 2021, 4:54 PM
Salman B
Salman B - avatar
0
https://code.sololearn.com/We75O8e7zYJB/?ref=app Bro can you add checkbox text in it aswell?
8th Oct 2021, 6:47 AM
Salman B
Salman B - avatar
0
Thats great. But i changed my mind. Where can i share my project to you? I want you to test it. As a user
8th Oct 2021, 2:37 PM
Salman B
Salman B - avatar
0
https://play.google.com/store/apps/details?id=only.ads4 Its done. Can you please test it and give me feedback?
14th Oct 2021, 12:48 PM
Salman B
Salman B - avatar
0
The chosen Category, e.g. Category Footwear, is shifting all the inputs. -> Category Footwear: Adidas; Brand Name: jogging shoes; Product Name: Shoes for sale; Ad Title: Explaining the reason here; ... etc.
14th Oct 2021, 9:08 PM
ボリス