Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Load elements can't process jquey function!!
Dwi Hyuga
8y
272
1
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..
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
How to javascript validtion email
Bootstrap multiselect dose'nt work