Bootstrap's close button doesn't work -


i'm trying display alert message close button twitter bootstrap. doesn't work chrome. created jsfiddle : http://jsfiddle.net/6vd5j/3/, strangely jsfiddle doesn't work.

<div class='alert alert-error'>     <button type='button' class='close' data-dismiss='alert'>×</button>     test </div> 

so i'm lost, , require please.

[edit] if run locally on chrome, doesn't work :

<?php echo "<link href='http://twitter.github.com/bootstrap/assets/css/bootstrap.css' rel='stylesheet' media='screen'>  <script src='http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js'></script> <script src='http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/js/bootstrap.min.js'></script>  <div class='alert alert-error'> <button type='button' class='close' data-dismiss='alert'>x</button> test </div>"; ?> 

something wrong bootstrap.js. uploaded again , works:

http://jsfiddle.net/6vd5j/4/

you used 2.0.2, , changed 2.3.1 current version. guess functionality wasn't available in 2.0.2.

the html same:

<br><br> <div class='alert alert-error'> <button type='button' class='close' data-dismiss='alert'>×</button> test </div> 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -