top of page

Forum Posts

akemp18
Dec 02, 2018
In Coding with Velo
I created two dropdown lists with one storing a set list of member names and one that stores a set list of member phone numbers. I'm trying to have the values that users selected for each show up as text (displayed to all visitors of the website). I tried to use the "selected" property per the Wix API but get an error saying "selected does not exist on dropdown2". Here is the code for this portion: let w1name = $w('#dropdown2').selected $w('#text59').text = w1name let w1number = $w("#dropdown1").selected; $w('#text60').text = w1number Any ideas? Thanks in advance!!
0
1
857
akemp18
Dec 01, 2018
In Coding with Velo
Hi, I'm trying to create a timer that counts down from 1 hour in minutes and seconds. I want the timer to show as being in a box and to start when a button is pressed. Any ideas?
0
4
2k
akemp18
Nov 30, 2018
In Coding with Velo
So far I have this as a sort of module on my website, with everything except the word "remaining" coded to "hide" when the "start cycle" button is pressed. When the button is pressed, I want a timer to pop up counting down from 1 hour in minutes and seconds, with the word "remaining" showing underneath. I created a countdown timer as a variable as below: var totalSeconds = 3600; var hours = Math.floor(totalSeconds / 3600 ); var minutes = Math.floor(totalSeconds % 3600 / 60); var seconds = totalSeconds % 60; var result = [hours, minutes, seconds].join(':'); console.log("%c result", "color:black; font-size: 2em; font-family: Arial; font-style: bold; text-align: center; position: absolute; left: 150px; top: 350px", ); This is the show/hide code: export function button2_click(event) { $w('#text22').hide(); $w('#dropdown2').hide(); $w('#text23').hide(); $w('#dropdown1').hide(); $w('#text31').show(); $w('#result').show(); } I'm getting an error that "result is not a valid selector", but I'm not sure how to fix this. Can anyone help? Thanks!
Coding timer to show on click  content media
1
1
1k

akemp18

More actions
bottom of page