Loading...
Copy code
Close
Permalink
Close
Please tell us why you want to mark the subject as inappropriate.
(Maximum 200 characters)
Report Inappropriate
Cancel
Private Message
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Cancel
From :
guest
To :
Subject :
Content :
Type the characters you see in the picture below.
Send
Update
Cancel
Feedback
Email ID
Subject :
Comments :
Send
Cancel
Private Message
Type the characters you see in the picture below.
Type the characters you see in the picture below.
Attach files
Desktop
Google Docs
Each Attachment size should not exceed 1.0 MB.
Max no of attachments : 3
Loading User Profile...
guest
Response title
This is preview!
Attachments
Publish
Back to edit
Cancel
(
)
Sign In
New to this Portal? Click here to
Sign up
You can also use the below options to login
Login with Facebook
Login with Google
Login with Yahoo
jQuery
Plugins
UI
Meetups
Forum
Blog
About
Donate
All Forums
Recent Posts
Log In
Search
jQuery
Search
jQuery Forum
Move this topic
Forum :
Getting Started
Using jQuery
Using jQuery Plugins
Using jQuery UI
Developing jQuery Core
Developing jQuery Plugins
Developing jQuery UI
QUnit and Testing
About the jQuery Forum
jQuery Conferences
jQuery Mobile
Developing jQuery Mobile
Sub forum :
Move this topic
Cancel
Using jQuery
Daniel111..
live search jquery and show to the table
in
Using jQuery
•
2 years ago
hello, i'm creating live search and show it to the table
here the ajax
$
(
"#cari"
).
on
(
'keyup'
,
function
(){
var
cari
=
$
(
"#cari"
).
val
();
$
.
ajax
({
type
:
"post"
,
url
:
"do_kasircari.php"
,
data
: {
cari
:
cari
},
dataType
:
"text"
,
success
:
function
(
data
)
{
$
(
"#hasil"
).
load
(
data
);
console
.
log
(
cari
);
console
.
log
(
data
);
}
})
});
here is the console.log
data is right, but not showing. why? please help, thanks
1
Replies(4)
jakecigar
Re: live search jquery and show to the table
2 years ago
$("#hasil").load(data);
is another ajax call. Are you sure you want that and not
$("#hasil").html(data);
Doing 2 ajax calls for each keyup is going to slow down the user experience. Even doing one would tax the browser.
JΛ̊KE
Daniel111..
Re: Re: live search jquery and show to the table
2 years ago
oh after i change it to html, it already works!
so i have another question, so i have the button for adding to the temporary database
how i can add the ajax?
do i add it inside the ("#cari") function?
Leave a comment on jakecigar's reply
jakecigar
Re: live search jquery and show to the table
2 years ago
Probably not. You can make a new question with an
example
of what you mean.
JΛ̊KE
Leave a comment on jakecigar's reply
Daniel111..
Re: live search jquery and show to the table
2 years ago
ok
Leave a comment on Daniel11111430242290's reply
Change topic type
Topic Type :
Discussions
Questions
Ideas
Problems
No of days :
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
Change topic type
Cancel
Link this topic
Provide the permalink of a topic that is related to this topic
Permalink
Save
Close
Reply to Daniel11111430242290's question
Top
Reply
{"z2950240":[14737000008258243,14737000008258247],"z715121145":[14737000008260240,14737000008260245,14737000008255165]}
Statistics
4
Replies
1115
Views
1
Followers
Tags
Cancel
ajax
php
jquery
mysql
Actions
Permalink
Related Posts
[jQuery] Please help me SPEED UP my...
Using JQUERY and AJAX and PHP and M...
Submit form with one image and show...
Javascript/JQuery/AJAX to PHP &...