This could all be one line: `$port.placeholder = this.checked ? '6697' : '6667'`