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
20 Answers
+ 1
Salman B, you changed your mind concerning what? What do you mean by testing?
+ 3
You are using jQuery ,but you don't
include jQuery library.That's why it's showing error.
+ 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.
+ 3
Now, showing
It's what you want?
https://code.sololearn.com/WcD0ev27j9me/?ref=app
+ 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 ...
+ 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.
+ 1
Oh ok. I understand. Anyway help me with the code please. You understand whats exactly i am looking for. Right?
+ 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
+ 1
Well i get it what i want. But there is another thing comes up. I know i am very irritating.
+ 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.
+ 1
Are you serious.... You are to good bro. Amazing.
This is exactly what i was looking for.
+ 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
0
Kms driven is not showing in textarea.
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
0
Kms driven value / text is not showing in textarea area. Just help me in it.
0
Thankyou so much. I solved it somehow. You helped me alot.
0
https://code.sololearn.com/We75O8e7zYJB/?ref=app
Bro can you add checkbox text in it aswell?
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
0
https://play.google.com/store/apps/details?id=only.ads4
Its done. Can you please test it and give me feedback?
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.