I have 4 text boxes in a form, I apply jQuery as shown below.
jQuery("#"+this.questionId+" input[type='text']:first-child").css("max-width","30%").after(" cm");
jQuery("#"+this.questionId+" input[type='text']:nth-child(2)").css("max-width","30%").after(" kg");
jQuery("#"+this.questionId+" input[type='text']:nth-child(3)").css("max-width","30%").after(" cm");
jQuery("#"+this.questionId+" input[type='text']:last-child").css("max-width","30%").after(" cm");
However, the outputs are the same for the text "cm" after each text box. Weight item should be in "kg".Welcome suggestions.
Question
Form text boxes elements
Leave a Reply
Rich Text Editor, editor1
Editor toolbars
Press ALT 0 for help
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.