Refresh/ Reload the content of a div using JQuery

  Рет қаралды 32,444

Knowledge Thrusters

Knowledge Thrusters

Күн бұрын

In this video, you will be able to refresh the content of a div without page refresh using jquery
Use jquery load function for the section you want to refresh
inside load, get location of the current url and pass the div or section id you want to refresh
Note: please provide a space between location.href and id of the section
if no space, then it will create a url and will not refresh the div
$('#refresh-section').load(location.href + " #refresh-section");
Refresh div without reloading page
refresh div content without reloading page
Refresh/ Reload the content of a div using JQuery
refresh div after ajax success
#jquery #knowledgethrusters

Пікірлер: 21
@bmizzle010
@bmizzle010 2 жыл бұрын
Thanks, you explained it perfectly.. didn't realize it was this simple!
@gefranviana4742
@gefranviana4742 2 жыл бұрын
*Muito obrigado você salvou a minha vida, tava muitas horas tentando.*
@Starmanfansunofficial
@Starmanfansunofficial Ай бұрын
❤❤
@funnyvideos.comlaughoutyou9133
@funnyvideos.comlaughoutyou9133 2 жыл бұрын
Wow, thanks for the video, it's very beautiful and helpful, I love you so much gal, u r my savior 😀
@martiruda
@martiruda 11 ай бұрын
thanks SO FRIGGING MUCH!
@Touhid54
@Touhid54 4 ай бұрын
Supper.
@getfreemusik
@getfreemusik 6 ай бұрын
Zabardast
@LalitThapa-qv8vm
@LalitThapa-qv8vm Жыл бұрын
Thanks for helping
@dr-mnizam
@dr-mnizam Жыл бұрын
Here is the video using google sheet: kzbin.info/www/bejne/eXKmpICufcafl6s
@alientec258
@alientec258 3 жыл бұрын
thank you very nice tut
@aashutoshyadav2118
@aashutoshyadav2118 3 жыл бұрын
Nice 👍
@SteveSmith-vi6jb
@SteveSmith-vi6jb 2 жыл бұрын
Thanks
@thechoosen4240
@thechoosen4240 Жыл бұрын
Good job bro, JESUS IS COMING BACK VERY SOON;PREPARE
@FCD303
@FCD303 4 ай бұрын
I have done this using vanilla javascript and PHP but my problem is that the scripts from old contents are affecting newly loaded scripts? like existing object event listener on old scripts etc is there a workaround for that?
@-MrHow-
@-MrHow- 2 жыл бұрын
Can i do it to refresh select statement One page not 2 page like the video
@c.l5378
@c.l5378 2 жыл бұрын
What if there's session active in load data pge is still work or getting logout automatically?
@grossibp
@grossibp Жыл бұрын
If you use it like this it creates the whole element once agian inside of itself. You can see it even on the video. This is wrong.
@martiruda
@martiruda 11 ай бұрын
how do you solve it?
@elefantefresa1059
@elefantefresa1059 4 ай бұрын
​@@martiruda Change the div above the refresh-section instead, so for example: $('#holder).load(location.href + " #refresh-section"); this should fix the issue. the problem is you are updating the section into the same section, thereby duplicating the element. you need to update it into the section above.
@AmanAli-il9kj
@AmanAli-il9kj 2 жыл бұрын
Does this work if you use classes
@knowledgethrusters
@knowledgethrusters 2 жыл бұрын
Yes
Difference Between setInterval and setTimeout  in Javascript
5:51
Knowledge Thrusters
Рет қаралды 758
Teaching a Toddler Household Habits: Diaper Disposal & Potty Training #shorts
00:16
My daughter is creative when it comes to eating food #funny #comedy #cute #baby#smart girl
00:17
Modus males sekolah
00:14
fitrop
Рет қаралды 25 МЛН
Using jQuery to Update a Page Without Refresh (Part 1 of 2)
14:47
Pretty Printed
Рет қаралды 99 М.
I built an app using a single index.php file, here's how it went
32:42
Andrew Schmelyun
Рет қаралды 32 М.
BREAKING: jQuery V4 Is Here (YES REALLY)
12:30
Theo - t3․gg
Рет қаралды 186 М.
Auto Refresh Page Div After Few Seconds | Learn PHP The Right Way
8:40
Haritha Computers & Technology
Рет қаралды 28 М.
Auto Refresh Div Content Using jQuery and AJAX
9:51
Webslesson
Рет қаралды 184 М.
Learn JSON in 10 Minutes
12:00
Web Dev Simplified
Рет қаралды 3,2 МЛН
Teaching a Toddler Household Habits: Diaper Disposal & Potty Training #shorts
00:16