如何在不使用后台选项的情况下删除joomla注册表单中的字段?或者最好的干草提出问题,我如何删除Jquery中的调用?
如果我删除后台中的字段,当我加载页面时,表单显示在1秒内的所有字段。但我找不到jquery调用表单的地方。
$js = "
jQuery(document).ready(function($){
// Define the variables
var regForm = $('#member-registration');
var name = regForm.find('#jform_name');
var username = regForm.find('#jform_username');
var password = regForm.find('#jform_password1');
var password2 = regForm.find('#jform_password2');
var email = regForm.find('#jform_email1');
var email2 = regForm.find('#jform_email2');
// Hide the required field, star, name, confirm pass and confirm email
regForm.find('.spacer').parents('.control-group').hide();
regForm.find('.star').hide();
name.parents('.control-group').hide();
password2.parents('.control-group').hide();
email.parents('.control-group').hide();
email2.parents('.control-group').hide();
// Add a default value to the name field
// name.val('Anonymous');
// Clone password and email values to the confirm fields
username.on('keyup', function() {
email.val( this.value );
email2.val( this.value );
name.val( this.value );
username.val( this.value );
});
password.on('keyup', function() {
password2.val( this.value );
});
});
";
感谢。