Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Load elements can't process jquey function!!
Dwi Hyuga
Aug 5 2016 8:29 PM
242
Reply
//first php
<html>
<head>
<script>
$(document).ready(
function
(){
$(
"#red"
).load(
"http://localhost/pros/cons.php"
);
$(
"#blue"
).keypress(
function
(e){
if
(e.which === 13){
alert(
"berhasil"
);
}
});
$(
"#green"
).keypress(
function
(e){
if
(e.which === 13){
alert(
"OK"
);
}
});
});
</script>
</head>
<body>
<input id=
"blue"
type=
"text"
/>
<div id=
"red"
></div>
</body>
</html>
//cons.php
<input type="text" id="green"/>
id="green" on cons.php on enter not work..
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to javascript validtion email
Bootstrap multiselect dose'nt work