Re: Edit input tag profile field_1?
The hack in function get_edit_html works.
I had to slightly edit the javascript. ‘-‘ is not accepted in usernames:
function copyinputuser()
{
var tmp = document.getElementById('field_1').value;
tmp = tmp.toLowerCase().replace(/^\s+|\s+$/g, "").replace(/[_|\s]+/g, "");
tmp = tmp.replace(/[^a-z0-9-]+/g, "").replace(/[-]+/g, "").replace(/^-+|-+$/g, "");
document.getElementById('user_name').value = tmp;
}