Home > front end >  Jquery: why can't I run
Jquery: why can't I run

Time:10-31

Novice one, would you please tell me why the jquery code is not running? .js file already on the web page with catalogue,



<meta charset="utf-8">
</script>
<script>
JQuery (document). Ready (function () {
$(" input [type='button'] "). Click (function () {
# var inputValue=https://bbs.csdn.net/topics/$(" test "). Val ();
Alert (inputValue);
});
});
</script>

<body>





After running the pop-up text and button, but no response, after the input

CodePudding user response:

='button' input and [type] don't have a space between

CodePudding user response:

Thank you, I delete the blank space, can or not
  • Related