+ 4
Why "#" Button Is Not Working?
https://code.sololearn.com/WuG4FRuiAqu0/?ref=app Please fix this code, i don't know why the hash (#) button is not working. After clicking on the call or phone icon. Other all button is working fine .
18 Respostas
+ 4
Ayesha Noor
Just a simple code
var number = document.querySelector('.number-input').value;
number = number.replace(/#/gi, "%23")
+ 3
It works for me.
+ 3
Here ' # ' hash means nothing
+ 3
Ayesha Noor it's easy
Just use ' %23 ' instead of ' # '
+ 2
I see. That's most likely not an issue with the button but with the interaction between your code and the mobile keypad.
+ 2
Ayesha Noor
what happening here is ÷
href="#" will move the scroll position to the top of the page
href="#" will prevent the page from being refresh
href="#" is an hyperlink
U can also use href="#[some id] " So it will scroll the page where theis element locates
+ 2
Thanks Alot. Thanks [[ Beauty & Abol ]] ... 😊😊
+ 1
No its not working, first click on the # button, and next click on the phone call icon, its not showing on my Mobile's Keypad.
+ 1
Do you know how to fix it?
+ 1
RIP :)
+ 1
Beauty , please fix this problem.
+ 1
its working but it is showing in the output
0
Unfortunately no. I tried using the entity code for "#" but that didn't make a difference.
0
It works for me
0
Have fixed ur code 😉
- 1
J
- 1
print