Skip to content
Advertisement

why jQuery functions don’t work together?

I’m new to jQuery, my functions adds class active to buttons when different inputs have value. However, only one function out of two works at once. Both functions work just fine separately. Maybe I am missing something? I writing these functions directly on html file without document.ready, but it didn’t solve the issue. Is there a way to make both

How to make JS media query work properly?

Media query in JS works, but as soon as it’s nested within a function such as onscroll or onclick, they’ll not work properly. I’ll just put the code in here just in case you want to resize window easier: https://www.w3schools.com/code/tryit.asp?filename=GP7P1ENXH9JY Try to test the media query if it works, I know it works, but as soon as you resize it

How to use child-process-promise

What I want is to add some processing after command produced output in stdout. So finally I want to create a function to use like this: The function should use promise from child-process-promise, wait until successful result produced and return promise for processing data. Answer Welcome to Stack Overflow @ScHoolboy. I cansuggest you use a basic child-process module from Node.js

How to let JS code allow both input and textarea

I have some JS code that will turn my code bold, italicized, or underlined with user input, so if the user checks bold the text will be bolded. Here is the code: It is giving me an error, and it is not bolding/italicized/underlined. I think this is because the JS code is checking for input, but the tag is textarea.

Disable or enable only the current button

With a PHP for each cycle, I’m bringing articles from the database. In those articles, we have a comment section with a form. I want to check with jQuery if there is something written on the input before the comment is sent. As the articles are being brought with a PHP cycle, I want to check only the article in

where can i find documents for WebSocket.Server.on method?

I am learning WebSocket in JavaScript, using [ws][1] and I read most of the Docs, related to it, but i couldn’t find any Documents for “on” method or function, As i like to know how this “on” method works. if anyone are familiar with this “on” method, in the WebSocket.Server , i would appreciate it, if could help me with

Advertisement