i want to align my one table cell text to right i do it like this:
var cell4 = row.insertCell(3);
cell4.css("text-align","right");
but i get:
TypeError: cell4.css is not a function
cell4.css("text-align","right");
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try
$(cell4).css("text-align","right");to make sure you’re calling .css on a jQuery object.