Commit 11225db1 by Ngô Trung Hưng

use show() & hide() in js

parent dc3976f3
Pipeline #956 canceled with stages
in 0 seconds
...@@ -42,14 +42,14 @@ $(document).on("turbolinks:load", function(){ ...@@ -42,14 +42,14 @@ $(document).on("turbolinks:load", function(){
// show & hide password // show & hide password
$(".icon_show_password").on('click',function() { $(".icon_show_password").on('click',function() {
$(".input_password").attr('type', 'text'); $(".input_password").attr('type', 'text');
$(".icon_show_password").css('display', 'none') $(".icon_show_password").hide()
$(".icon_hide_password").css('display', 'block') $(".icon_hide_password").show()
}); });
$(".icon_hide_password").on('click',function() { $(".icon_hide_password").on('click',function() {
$(".input_password").attr('type', 'password'); $(".input_password").attr('type', 'password');
$(".icon_hide_password").css('display', 'none') $(".icon_hide_password").hide()
$(".icon_show_password").css('display', 'block') $(".icon_show_password").show()
}); });
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment