Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これらのjquery行を組み合わせるための正しい構文を得ることができません。append を attr() で使用できますか、またはこれらを個別に呼び出すか、コールバックで呼び出す必要がありますか? 追加する必要もありません。その要素に書き込むのはそれだけです。そこにテキストを取得する他の方法を知りませんでした。
$('#People').append(array.names[9]); $('#People').attr({ class: 'blueDescriptorBig' });
正しく理解したかどうかはわかりませんが、以下を参照してください
$('#People') .append(array.names[9]) .addClass('blueDescriptorBig'); //Should use addClass instead of .attr for class