This topic contains 2 replies, has 2 voices, and was last updated by pepe 4 years, 10 months ago.
Viewing 3 posts - 1 through 3 (of 3 total)
Viewing 3 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic.
jQuery UI Widgets › Forums › Editors › Input, Password Input, TextArea, ColorPicker, Rating, TagCloud, Loader › change password box icon
Tagged: change icon, javascript passwordinput, jquery passwordinput, jqwidgets passwordinput, PasswordInput
This topic contains 2 replies, has 2 voices, and was last updated by pepe 4 years, 10 months ago.
Good evening, I try to change the icon of the password entry box. I have looked at other examples in the forum but I can not.
A greeting.
<!DOCTYPE html>
<html lang=”en”>
<head>
<link rel=”stylesheet” href=”../../jqwidgets/styles/jqx.base.css” type=”text/css” />
<script type=”text/javascript” src=”../../scripts/jquery-1.11.1.min.js”></script>
<script type=”text/javascript” src=”../../jqwidgets/jqxcore.js”></script>
<script type=”text/javascript” src=”../../jqwidgets/jqxpasswordinput.js”></script>
<style>
.jqx-passwordinput-password-icon, .jqx-passwordinput-password-icon-rtl{
background-image: url(“http://simpleicon.com/wp-content/uploads/arrow-5.png”);
}
</style>
</head>
<body class=’default’>
<div id=’content’>
<script type=”text/javascript”>
$(document).ready(function () {
$(“#input”).jqxPasswordInput({ placeHolder: “Enter a Password”, height: 25, width: 200});
});
</script>
<input type=”password” id=”input”/>
</div>
</body>
</html>
Hello pepe,
You could change the icon with inner classes: jqx-passwordinput-password-icon
.
More information about this you could find in the “Styling and Appearance” section:
https://www.jqwidgets.com/jquery-widgets-documentation/documentation/jqxpasswordinput/jquery-password-input-styling-and-appearance.htm?search=password
Please, take a look at this topic, it has a similar case (but for jqxNumberInput):
https://www.jqwidgets.com/community/topic/how-to-change-the-arrow-icon-for-jqxnumberinput/
I would like to suggest you take a look at this example:
https://jseditor.io/?key=13f6d813366611e8b3a100224d6bfcd5
Best Regards,
Hristo Hristov
jQWidgets team
http://www.jqwidgets.com
Thank you very much for the reply.
a greeting
You must be logged in to reply to this topic.