+ 1
[pls help] Javascript: i set input in maskmoney (money format) and readonly, but still the textbox can still be edited
Hi. So i set a texbox in 2 javascript function, maskmoney and readonly. The purpose is, when user click yes in a radio button, it will make this textbox to bein readonly. While if uder click no, the textbox can be inserted. And the input should be in maskmoney (money format) My issue is, even when i click radio button to yes (input should be in readonly), the input still can be edited. Can anyonw help me? https://code.sololearn.com/Whl9KuL72IhV/?ref=app
5 Antworten
0
Always mention your code along with your question.
0
zexu knub hi i have attached the code in the question, hope u can take a look
0
Azfar Hafiz Ahmad Is it 100% your code? cuz you have used JS & jQuery mixed in the code & you haven't even defined the jQuery CDN.
0
zexu knub this is the only related code. That line of html (textbox) and the javascript.
maskmo maskmoney
0
zexu knub i've read in google, maskmoney and readonly cant be bind as it will cause readonly not working. But i need it, so thats the issue