JavaScript Script only works correctly with one of two buttons script only works after a refresh,script only works in

I have a problem with my jQuery Button. So I have 2 buttons the nexButton and the bacButton. The code that I will show you works perfect on the nexButton but it doesn't work that well on the bacButton.

(important !) this is a link to a video where you can see what is going on: https://www.youtube.com/watch?v=A4huQ5CRNc4

As you can see when I hold the mouse on the nexButton it changes the opacity and it stays the same until I get my mouse of the button. But when I hold the mouse on the bacButton it changes the opacity of the button but it just changes back to the old opacity (what souldn't happen and just stays the opacity until I get my mouse of the button).

Here is the code that I use:

$(document).ready(function(){
    $('#nexButton, #bacButton').mouseenter(function(){
        $(this).stop().animate({opacity: '1'},'fast'); 
    });
    $('#nexButton, #bacButton').mouseleave(function(){
        $(this).stop().animate({opacity: '0.7'},'fast'); 
    });
});

My buttons:

<img id="bacButton" src="arrowhead9%20(2).png">
<img id="nexButton" src="arrowhead9%20(2).png">

Can someone fix this code for me? because I can't make it work and I also tried other combinations and other code.

Answer:1

Currently, I am working on a project which requires the backend to be done in oracle. I used the given link and installed the node-oracledb using npm on my mac. My file contents are as follows var ...

Currently, I am working on a project which requires the backend to be done in oracle. I used the given link and installed the node-oracledb using npm on my mac. My file contents are as follows var ...

  1. 12514 error in oracle

As the title of my question may be sufficiently understandable, I'll explain anyway. I'm working on a personal project with Electron, and I'm facing a frustrating issue which is : I'd like to ...

As the title of my question may be sufficiently understandable, I'll explain anyway. I'm working on a personal project with Electron, and I'm facing a frustrating issue which is : I'd like to ...

  1. electron create window from renderer
  2. electron create window fullscreen
  3. electron create window maximized
  4. electron create window
  5. electron create windows installer
  6. electron create windows executable
  7. electron create windows service
  8. electron create windows exe
  9. electron create windows package
  10. electron create new window
  11. electron create child window
  12. electron create browser window
  13. electron create hidden window
  14. electron create modal window
  15. electron create new window on click
  16. electron create second window
  17. electron js create window
  18. electron create another window
  19. electron create sub window
  20. electron create multiple windows

I am trying to make campaigns for my Cordova app. I am using this plugins: https://github.com/Anu2g/google-analytics-plugin.git Which have support for campaigns https://github.com/8zrealestate/...

I am trying to make campaigns for my Cordova app. I am using this plugins: https://github.com/Anu2g/google-analytics-plugin.git Which have support for campaigns https://github.com/8zrealestate/...

I have a GeoJSON dataset which has points and polygons. I have a simple Leaflet code which reads them into a map, like this: var MyLayer = new L.GeoJSON.AJAX("/UrbanSyntax/Desarrollo/twitter /data/...

I have a GeoJSON dataset which has points and polygons. I have a simple Leaflet code which reads them into a map, like this: var MyLayer = new L.GeoJSON.AJAX("/UrbanSyntax/Desarrollo/twitter /data/...

  1. geojson convert polygon to linestring
  2. geojson convert polygon to point
  3. convert geojson to polygon
  4. convert multipolygon to polygon geojson
  5. leaflet convert geojson to polygon