//not used the onl oadWindow. Ready=function () {
Alert ($(" url "). Val ());
};
</script>
CodePudding user response:
Selector using the wrongAlert ($(" input [name='url'] "). The val ());
CodePudding user response:
To pay more attention to reading wrong, usually can find problemsAlso, make sure to remember introducing Jq file
CodePudding user response:
Suggest another look at JQ or JS selectorCodePudding user response:
Native js method
Window. The onl oad=function () {
Alert (document. QuerySelector (" input [name='url'] "). The value).
}
Jquery method
$(function () {
Alert ($(" input [name='url'] "). The val ());
});