https://jamesdreaming.tistory.com/206

 

jQuery 를 이용하여 id, class, name 의 input value 값 가져오기

■ jQuery 를 이용하여 id, class, name 의 input value 값 가져오기 1 cs 위와 같은 input tag 가 있다고 가정 하겠습니다. 이 input tag 에 id, class, name 값을 각각 지정 했습니다. 1 cs 버튼을 하나 만들어..

jamesdreaming.tistory.com

 

 

 

https://www.codingfactory.net/10208

 

jQuery / Method / .attr() - 속성(attribute)의 값을 가져오거나 속성을 추가하는 메서드

.attr() .attr()은 요소(element)의 속성(attribute)의 값을 가져오거나 속성을 추가합니다. 문법 1 .attr( attributeName ) 선택한 요소의 속성의 값을 가져옵니다. 예를 들어 $( 'div' ).attr( 'class' ); 는 div 요소의

www.codingfactory.net