I have following code which have a css class called “formErrorContent”
var promptContent = $('<div>').addClass("formErrorContent").
html(promptText).appendTo(prompt);
Before addiing the class as per the above code. I need to replace the width attribute
with some other values like this
$("#formErrorContent").attr("WIDTH","13");
But the above line is not working and not setting the width attibute to 13 in the css class “formErrorContent”
Please help me on this … Thanks
Try this:
http://jsfiddle.net/Urr2c/1/