 <p>Comma separates multiple selectors, so you were searching for inputs named "weekday" <em>and</em> elements of any type with value = 1.</p> <p>To combine both criteria in one selector, just add them after one another:</p> <pre><code>$('input[name=weekday][value=1]').attr("checked", "checked"); </code></pre>