dynamic attribute added to input tag