Bouton ne marche pas
helloworld
-
jordane45 Messages postés 40051 Date d'inscription Statut Modérateur Dernière intervention -
jordane45 Messages postés 40051 Date d'inscription Statut Modérateur Dernière intervention -
Bonjour,
qu'est ce qui peu bien empecher mon bouton de fonctionner ? Rien ne s'affiche dans la console mais un console.log au chargement de la page fonctionne donc mon script est bien intégrer..
qu'est ce qui peu bien empecher mon bouton de fonctionner ? Rien ne s'affiche dans la console mais un console.log au chargement de la page fonctionne donc mon script est bien intégrer..
$('button:last').on('click',function(){
console.log("salut");
});
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Page Title</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- bootstrap 4 css-->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<link rel="stylesheet" type="text/css" media="screen" href="main.css" />
<!-- bootstrap 4 -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
<!-- script perso + jquery.js-->
<script type="application/javascript" src="script.js"></script>
<script type="application/javascript" src="jquery.js"></script>
</head>
<body>
<section class="content">
<article class="container"><br>
<div class="row" id="login_top">
<div class="col-lg-4"></div>
<div class="col-lg-4">
<p id="login_text">Appli</p>
<input class="form-control" id="log1" type="text" name="username" placeholder="Username" required=""><br>
<input class="form-control" id="mdp1" type="password" name="password" placeholder="Password" required=""><br>
<button class="btn btn-success btn-block">Se connecter</button>
<button class="btn btn-secondary btn-block">S'enregistrer</button>
</div>
</div>
</article>
</section>
</body>
</html>
Configuration: Windows / Chrome 71.0.3578.98
A voir également:
- Bouton ne marche pas
- Diagnostic bouton photo - Accueil - Outils
- Bouton shift pc - Forum Jeux vidéo
- Bouton couleur telecommande - Guide
- Réinitialiser chromecast sans bouton - Guide
- Bouton reinitialisation pc - Guide