jObject[0].checked = "checked";이렇게 javascript 객체로 변경해서 진행했습니다. (적용이 안되니 어떻게든 되게 해야져 ^^;;)
다음은 .attr()과 .prop()사용에 관한 구분입니다..prop()
- prop( propertyName )
- .prop( propertyName )
- prop( propertyName , value )
- .prop( propertyName, value )
- .prop( map )
- .prop( propertyName, function(index, oldPropertyValue) )
Attribute/Property |
.attr() |
.prop() |
accesskey |
✓ |
|
align |
✓ |
|
async |
✓ |
✓ |
autofocus |
✓ |
✓ |
checked |
✓ |
✓ |
class |
✓ |
|
contenteditable |
✓ |
|
defaultValue |
|
✓ |
draggable |
✓ |
|
href |
✓ |
|
id |
✓ |
|
label |
✓ |
|
location * |
✓ |
✓ |
multiple |
✓ |
✓ |
nodeName |
|
✓ |
nodeType |
|
✓ |
readOnly |
✓ |
✓ |
rel |
✓ |
|
selected |
✓ |
✓ |
selectedIndex |
|
✓ |
src |
✓ |
|
style |
✓ |
|
tabindex |
✓ |
|
tagName |
|
✓ |
title |
✓ |
|
type |
✓ |
|
width ** |
✓ |