<select name="tag_keys[]" id="category_type" required> <option value="" tag-id="">请选择</option></select>
$('#category_type').change(function () { var data = { type: $("#type").val(), parent_id: $(this).find("option:selected").attr("tag-id") }; })