mr-stasyuk
4/12/2017 - 1:13 PM

find, get data-atr. value and set to input value

find, get data-atr. value and set to input value

var user=$(".user-data").attr("data-user");
var email=$(".user-data").attr("data-email");
var phone=$(".user-data").attr("data-phone");

$(".wrap-user-info-form #username").val(user);
$(".wrap-user-info-form #phone").val(phone);
$(".wrap-user-info-form #reg_email").val(email);