Test 1

Test 2

Test 3

Test 4

Test 5

Scrollable tabs

Test 5

Test 6

Test 7

Test 8

Test 9

Test 10

Test 11

Test 12

Test 13

Test 14

Test 15

Test 20

Test 21

Test 22

Test 23

Test 24

Test 25

Tabs HTML Structure

<div class="row">
	<div class="col s12">
	<ul class="tabs">
		<li class="tab col s3"><a href="#test1">Test 1</a></li>
		<li class="tab col s3"><a class="active" href="#test2">Test 2</a></li>
		<li class="tab col s3 disabled"><a href="#test3">Disabled Tab</a></li>
		<li class="tab col s3"><a href="#test4">Test 4</a></li>
	<div id="test1" class="col s12">Test 1</div>
	<div id="test2" class="col s12">Test 2</div>
	<div id="test3" class="col s12">Test 3</div>
	<div id="test4" class="col s12">Test 4</div>

jQuery Plugin Initialization

Tabs are initialized automatically, but if you add tabs dynamically you will have to initialize them like this.


jQuery Plugin Methods

You can programmatically trigger a tab change with our select_tab method. You have to input the id of the tab you want to switch to. In the case of our demo it would be either test1, test2, test3, or test4.

	$('ul.tabs').tabs('select_tab', 'tab_id');

Preselecting a tab

By default, the first tab is selected. But if this is not what you want, you can preselect a tab by either passing in the hash in the url ex:#test2. Or you can add the class active to the a tag.

<li class="tab col s2"><a class="active" href="#test3">Test 3</a></li>