Hi I’m having trouble adding a custom feature using the custom code. I’m trying to have a date function using 2 select boxs and if you put a certain date it gives a different message after you hit the button. The location of this function is under the Element finder dropdown. Can anyone help me please.
HI @leedo and welcome. I have checked your JS and there is one IMHO mistake. After word text you have semicolon that should not be there as it brakes the code. There was another problem with placement of last part of code. You can also simplify your code a bit as you use long selectors instead to save it in variable. This has nothing to do with performance but it will be easier to read.
I can’t customise your code and try if it will work . At first I do not now what exactly you pointing and if you pointing these elements correctly, but here is code I came out with (only slight touch on original). I can’t promise that is correct solution. If you will use more signs you can try JS Switch. but it is just suggestion as I’m not familiar with whole problematic.
Hi thank you for replying so quick in this instant if you open the dropdown of the box labeled element finder it shows two select box I gave them different Ids of month and day so those are the elements I’m pointing to. Also I have a text box which is the what you called sign element but the event listener is looking for when the button is clicked not the textbox.
Can you post here a link to LIVE(published) page (best will be copy you would not touch, means nothing will change while working on it) so I can use devTools to look on it? Also comment out script code