요소를 1 또는 2 줄로 결합하여이 jquery 코드를 작성하는 더 좋은 방법이 있습니까?.attr에 여러 요소 결합
jQuery('#pinfo').attr('href', 'mailto:[email protected]' );
jQuery('#pinfo').attr('class','pullup');
jQuery('#prelated').attr('href', 'mailto:[email protected]' );
jQuery('#prelated').attr('class','pullup');
질문이 문제에 대한 최소한의 이해가 해결되는 것을 보여 주어야합니다. ** 시도한 솔루션 **, ** 그들이 작동하지 않은 이유 ** 및 예상되는 결과가 포함됩니다. – showdev