<p><button id="select">Select the last column</button></p>

<div id="editor">
	<table border="1">
		<thead>
			<tr>
				<th scope="col">Column 1</th>
				<th scope="col">Column 2</th>
				<th scope="col">Column 3</th>
				<th scope="col">Column 4</th>
			</tr>
		</thead>
		<tbody>
			<tr>
				<th scope="row">Cell 1.1</th>
				<td>Cell 1.2</td>
				<td>Cell 1.3</td>
				<td>Cell 1.4</td>
			</tr>
			<tr>
				<th scope="row">Cell 2.1</th>
				<td>Cell 2.2</td>
				<td>Cell 2.3</td>
				<td>Cell 2.4</td>
			</