+ 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 .

17th Nov 2021, 2:05 PM
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫 - avatar
17 Réponses
+ 4
Ayesha Noor Just a simple code var number = document.querySelector('.number-input').value; number = number.replace(/#/gi, "%23")
17th Nov 2021, 3:18 PM
Pariket Thakur
Pariket Thakur - avatar
+ 3
It works for me.
17th Nov 2021, 2:07 PM
Simon Sauter
Simon Sauter - avatar
+ 3
Here ' # ' hash means nothing
17th Nov 2021, 2:38 PM
Pariket Thakur
Pariket Thakur - avatar
+ 3
Ayesha Noor it's easy Just use ' %23 ' instead of ' # '
17th Nov 2021, 2:56 PM
Pariket Thakur
Pariket Thakur - avatar
+ 2
I see. That's most likely not an issue with the button but with the interaction between your code and the mobile keypad.
17th Nov 2021, 2:19 PM
Simon Sauter
Simon Sauter - avatar
+ 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
17th Nov 2021, 2:36 PM
Pariket Thakur
Pariket Thakur - avatar
+ 2
Thanks Alot. Thanks [[ Beauty & Abol ]] ... 😊😊
17th Nov 2021, 4:07 PM
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫 - avatar
+ 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.
17th Nov 2021, 2:16 PM
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫 - avatar
+ 1
Do you know how to fix it?
17th Nov 2021, 2:26 PM
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫 - avatar
+ 1
RIP :)
17th Nov 2021, 2:34 PM
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫 - avatar
+ 1
Beauty , please fix this problem.
17th Nov 2021, 2:42 PM
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫
𝐀𝐲𝐞𝐬𝐡𝐚 𝐍𝐨𝐨𝐫 - avatar
+ 1
its working but it is showing in the output
18th Nov 2021, 11:01 AM
Drish Patel
0
Unfortunately no. I tried using the entity code for "#" but that didn't make a difference.
17th Nov 2021, 2:32 PM
Simon Sauter
Simon Sauter - avatar
0
It works for me
19th Nov 2021, 5:14 AM
Agbebi Samuel Adeyemi
Agbebi Samuel Adeyemi - avatar
0
Have fixed ur code 😉
28th Feb 2022, 11:44 AM
K1auDIa KaDaM0UR0
K1auDIa KaDaM0UR0 - avatar
- 1
J
18th Nov 2021, 2:54 PM
abdul karim
abdul karim - avatar
- 1
print
18th Nov 2021, 7:32 PM
فالاحترام نصف الثقافة
فالاحترام نصف الثقافة - avatar