twbs / bootstrap

The most popular HTML, CSS, and JavaScript framework for developing responsive, mobile first projects on the web.
https://getbootstrap.com
MIT License
170.29k stars 78.78k forks source link

problem with all javascript plugins #4003

Closed ghost closed 12 years ago

ghost commented 12 years ago

I try to make website with bootstrap, but i have a trouble with the dropdown, tooltip (javascript component) won't work, any ideas or solution?

there is my script...

<!DOCTYPE html>

``` lambble ``` ``` ``` ``` ```

selamat datang di Lambble

jejaring sosial mahasiswa fakultas ilmu sosial unesa

selengkapnya...

```
```

Hi! Terima kasih sudah berkunjung di Lambble

Lambble adalah jejaring sosial sederhana yang memiliki misi sebagai media penghubung informasi akademik.

Dengan Lambble anda bisa mengirimkan komentar, berbagi foto, mengirimkan pesan, & mandapatkan informasi terbaru dari kampus.

Untuk sementara Lambble hanya terbatas untuk konsumsi :

  • Program Studi S1 Administrasi Negara
  • Program Studi D3 Administrasi Negara
  • Program Studi S1 Pendidikan Pancasila & Kewarganegaraan
  • Program Studi S1 Ilmu Hukum
update 4 July 2012 | Lambble Kontak :

Lambble, Inc.

  • Jl. Blibis Karah, Gg SMA 18
  • Jambangan, Surabaya
  • P: (+62) 8585-3077-424
Akun Sosial :
```
``` ```
Registrasi :

``` ```


```



Mendaftar
```


mchiocca commented 12 years ago

Try placing the script tag for jQuery first, before the script tags for the Bootstrap JavaScript plugins.

ghost commented 12 years ago

thanks, how? any example?

mchiocca commented 12 years ago

Just edit your file and move the script tag for jQuery above the script tag for the Bootstrap plugins.

ghost commented 12 years ago

I try, but still won't work... there is example...

  <script src="js/bootstrap-tooltip.js" type="text/javascript"></script>  

 <script src="js/bootstrap.js" type="text/javascript"></script> 

  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
mchiocca commented 12 years ago

You haven't moved the jQuery script tag. Move it so that it appears FIRST, BEFORE the script tags for the JavaScript plugins.

add1ct3dd commented 12 years ago

facepalm.

ghost commented 12 years ago

Thanks, i will try again...

mdo commented 12 years ago

Include jQuery first, then include EITHER the bootstrap.js file or all the individual files, but not both.