# multi-device-switcher/1.0.4/multi-device-switcher.js

Multi Device Switcher, version 1.0.4. 12 lines.

- Page: https://pluginprobe.com/plugins/multi-device-switcher/1.0.4/code/multi-device-switcher.js
- Raw: https://pluginprobe.com/plugins/multi-device-switcher/1.0.4/raw/multi-device-switcher.js
- Modified: 2012-07-09T07:25:02+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/multi-device-switcher/1.0.4/code/multi-device-switcher.js#L10-L20`.

```javascript
jQuery(document).ready(function(){
	if (! jQuery('#admin-tabs').length) return;
	jQuery('#admin-tabs').prepend('<ul><\/ul>');
	jQuery('#admin-tabs > fieldset').each(function (i) {
		id = jQuery(this).attr('id');
		caption = jQuery(this).find('h3.label').text();
		jQuery('#admin-tabs > ul').append('<li><a href="#'+id+'"><span>'+caption+'<\/span><\/a><\/li>');
	});

	jQuery('#admin-tabs').tabs();
});

```
