javascript - Hide an input value on the Front end While maintaining the value on the Back -


i trying hide input value. want use input text type sort of password input field. dont want values displayed though. how go hiding value after insertion has been made? values hidden.

i have tried few methods no luck. still need access in jquery/ajax can pass sql password verification. appreciated. thanks

html

<input type=text id=num1 onclick="hidevalue()"> 

javascript

function hidevalue(){    document.getelementbyid('num1').value.visibility="hidden"; } 

you need tell theat password field.

<input type="password" id="num1"> 

Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -