Posts by Robson Braga • 171 points
4 posts
-
0
votes1
answer472
viewsA: Update v-for in Vue.js
I believe the application should be breaking due to not being able to render an empty item. You can try checking items on your list by using v-if, and render items only if they exist. <div…
-
1
votes1
answer43
viewsA: Jquery img code to exchange
Pure jquery: const window = $(window); const logo = $('.logo'); window.scroll(function(){ if( window.scrollTop < 100 ) logo.attr('src', 'logooficial.png') else logo.attr('src',…
-
1
votes1
answer53
viewsA: Post loaded with ajax in repeated wordpress
You need to pass the offset in the arguments to be able to pick up the posts from the amount you have already loaded. Initially you will pass the value 0, and each time you search for the posts, you…
-
2
votes1
answer40
viewsA: How to use jquery after() in javascript?
Javascript: const div = document.querySelector('#div1'); div.insertAdjacentHTML('beforeend', `<div id="div2"></div>`); This is one way. There are other ways too. You can see this and…