Adding class to a cloned textbox

Adding class to a cloned textbox

I want to add a class property to cloned textbox. when i tried 

$(clone).find("#pdt-0").attr({ id: "pdt-" + ids, name: "pdt-" + ids, lang: ids }); 

 i was able to set other attributes. But how can i set a specific class to this textbook.

Thanks in advance .