function check_user(){
var username = document.getElementById("user_reg_info");
username.style.visibility = "visible";
username.innerHTML = "Your password must to contain minimum 3 characters and max 15. It cann't contain whatever like this !@#";
}
Jak taki kod w JS, zamienić na jQuery ? Narazie mam takie coś, ale nie działa:
$(document).ready(function check_user(){
var username = $("#user_reg_info").on
("focus", function(){
$(username).css("visibility", "visible");
})
("focus", function(){
$(username).html("Your username must to contain minimum 3 characters and max 15. It cann't contain whatever like this !@#");
})
})
Pisane na szybko. Mam nadzieję, że się nie pomyliłem
function check_user(){
var username = $("#user_reg_info");
username.css("visibility","visible");
username.html("Your password must to contain minimum 3 characters and max 15. It cann't contain whatever like this !@#");
}