Quantcast
Channel: ASPSnippets RSS Feed
Viewing all articles
Browse latest Browse all 4751

Dynamically change HTML INPUT Type using JavaScript

$
0
0
Here Mudassar Ahmed Khan has explained with an example, how to dynamically change HTML INPUT Type using JavaScript. This article will illustrate how to dynamically change the Type attribute of HTML TextBox from Text to Password using JavaScript. HTML does not allow the Type attribute to be modified with JavaScript at runtime and hence the same can be achieved by creating a dynamic TextBox next to the Password TextBox and hiding the Password TextBox.

Viewing all articles
Browse latest Browse all 4751

Trending Articles