jQuery dynamically assigned to the selector

<! - affinity measurements may be used -> 
<DOCTYPE HTML!>
<HTML lang = "EN">
<Script the src = "../ JS / jQuery-1.8.3.min.js"> </ Script>
< head>
<Meta charset = "UTF-. 8">
<title> the title </ title>
</ head>
<body>

<sELECT ID = "featureLayerOptions">
</ sELECT>
<-! best specification class selector cc_id do not use this format, or preferably cc cC ->
<P ID = "cc"> </ P>

<Button the onclick = "the getValue ()"> Button </ Button>
<Script type = "text / JavaScript ">
/ *
  the array data selector filled, to obtain the value selectd by the button, and print them out;
* /
var AA =" Hello World ";
function getValue() {
var osel=document.getElementById("featureLayerOptions");
} / *   Ordinary function declarations are shorthand, is a callback function to execute when the DOM is complete, and only once.   For common i.e. jQueryParam is passed to the function argument , parameter by the reception * / $ (function () { FFS (FF); });













function foo(){},不调用不执行
  $(function(){/*...*/});$(document).ready(function(){/*...*/})
(function($){...})(jQueryParam);function($){}$





</script>
</body>
</html>

Guess you like

Origin www.cnblogs.com/Sam-2018/p/jquery-select-input.html