SyntaxFix
Write A Post
Hire A Developer
Questions
Try This:
$("input[name=type]").val(['1']);
http://jsfiddle.net/nwo706xw/