Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery steps won't render correctly

The HTML:

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TEsT</title>    
</head>
<body>
<div id="wizard">
    <h1>First Step</h1>
    <div>First Content</div>

    <h1>Second Step</h1>
    <div>Second Content</div>
</div>

    <script src="jquery-1.11.0.min.js"></script>
<script src="jquery.steps.min.js"></script>
<script src="homepage.js"></script>
    </body>
</html>

jQuery:

$(document).ready(function(){
$("#wizard").steps();
});

The (un-extraordinary) Rendition: jQuery Steps

like image 286
kmansoor Avatar asked Apr 30 '14 18:04

kmansoor


1 Answers

You should include following css file in your plugin:

https://github.com/rstaib/jquery-steps/blob/master/demo/css/jquery.steps.css

Also try changing the div tag inside #wizard to section tag

like image 174
Abhas Tandon Avatar answered Oct 13 '22 07:10

Abhas Tandon