// Copy the username/password fields
var usernameField = jfbcJQuery(formId + ' :input[name=username]')[0].clone();
usernameField.type = 'hidden';
usernameField.val = username;
jfbcJQuery(otpForm).find("form").append(usernameField.outerHTML);
var passwordField = jfbcJQuery(formId + ' :input[name=password]')[0].clone();
passwordField.type = 'hidden';
passwordField.val = password;
jfbcJQuery(otpForm).find("form").append(passwordField.outerHTML);
// Copy the username/password fields
var usernameField = jfbcJQuery(formId + ' :input[name=username]').clone();
usernameField.val = username;
usernameFieldHTML = '<input type=\"hidden\" name=\"username\" value=\"' + usernameField.val + '\"\>';
jfbcJQuery(otpForm).find("form").append(usernameFieldHTML);
var passwordField = jfbcJQuery(formId + ' :input[name=password]').clone();
passwordField.val = password;
passwordFieldHTML = '<input type=\"hidden\" name=\"password\" value=\"' + passwordField.val + '\"\>';
jfbcJQuery(otpForm).find("form").append(passwordFieldHTML);
Join our newsletter to get alerts for Joomla releases, tips and tricks and extension updates.