JavaScript

How to route in electron react app during production

How to route in electron react app during production

I am using electron 6.10.0 and using React.js. In my app, there is an add task option in menu, which creates a new window. Everything works fine during development, but during production this line causes problem. It loads index.html, through which it loads index.js and which renders router.js. This is the code in Router.js. Mainwindow …

How to route in electron react app during production Read More »

jquery find div with data attribute

How to find an element with data attribute by selector and add an event to them in jQuery?

For example, we have html page which contains many divs at different knots. Some of them have an attribute data-custom. How can these divs be identified in JQuery to add onClick event to them? In jQuery documentation we have this example: But with it we can find attributes with a value in search. If you want …

How to find an element with data attribute by selector and add an event to them in jQuery? Read More »