hey !
im writing my first website and i have problem, i want to get a price from the user then to use this number and show it in a box.
i had a JS code how works nice when i juse use it in the console.
i gave the input box a name “price” and now when i try to use it in my code its now working , the page code is not recognize this name “price”.
thanks for help !
You might want to include screenshots, and the code snippet you wrote might be helpful
there is input bar "when its wrote “price” and i gave id “priceBefore”
the empty box after this bar is “priceAfter”
im not sure what i did wrong
In parentheses, before the element name you add
"
or
’
Plus
And after the element name you add again
"
or
’
" element#"
$w("#pricebefore").value
evyatar. israel. Bnei Brak
i think now its ok !!
thanks !
but now i want to put the answer in the box “priceAfter”
how i do it?
After closing, you must define the type of data for the input. Loose a point then
For example here
.value
its work !!
thank you my friend !
You need to return the value or input field (but if this is a result and you do not want it edited you should set it to read-only) or text field.
I don’t know what element this “priceafter” is but it’s probably not an input field.
If this is a text field, you should end after the point instead of the value you are writing text
It cannot be sent to the box for example
Thank you very much toy helped me alot !