Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Browsing all 139805 articles
Browse latest View live
↧

How to change the title font of Ant Design card component?

How can I change only the title font but retain the default font for the child of the Card component of Ant Design?Sample Card component:// How to change title style <Card title="Default"...

View Article


Image may be NSFW.
Clik here to view.

forEach is not a function error with JavaScript array

I'm trying to make a simple loop:const parent = this.el.parentElement console.log(parent.children) parent.children.forEach(child => { console.log(child) }) But I get the following error:VM384:53...

View Article


How to show error if name does not exist in json file?

I have stuck how to show error if name is not exist in json file. I have tried if(searchField != value.name.search(expression)) and if(searchField != value.name) but its not working.Here is my code...

View Article

Browser crashes after uploading around 150 photos

I am working on an application where we are uploading around 200-300 images using jquery fileupload. Before uploading i need to resize it using canvas in browser to reduce server load. But page crashes...

View Article

How to pass data to the database with javascript and laravel

I'm creating this functionality where user can like a product and unlike it with javascript, if user likes the product it should add to the database and also if he unlike the product it should be...

View Article


How to prevent NVDA from reading "Div" as clickable?

Below is my sample code, when user clicks arrow-down NVDA is reading section as clickable.<section> <p>How would you like to pay?</p> <form> <input type="text"/>...

View Article

Why Is My Function Alternating Between Working and Then Not Javascript

This is my very first ever question asked here, so I do apologise in advance if I am not following correct guidelines.Basically what I'm trying to do is to manually code side-section navigating in...

View Article

typescript syntax - how to single line filter/map array [duplicate]

This question already has an answer here:Map and filter an array at the same time 10 answersmany times I need to loop arrays to get only specific items inside that.here's an example:let girls = [];...

View Article


How do i implement a search bar which fetches information using an API

I am trying to build an application using "Rick and Morty" REST API. I have created the "card.js" component which fetches data from the API such as characters, name, id, species, and I am mapping on...

View Article


Detect a click and compare URLs

I need to detect mouse clicks after page loads and the function is exectued which deletes ads.After the mouse click is detected, it will compare the URLs and it should do this on every mouse click.I...

View Article

jQuery Form Validation is not working on bootstrap modal

I am using jQuery validation of this I am writing form validation on bootstrap modal but it's not working properly whenever I hit the submit button its getting submitted without showing the form...

View Article

How to avoid wrapping ClassNames【Gutenberg RichText】

I added the buttons for Large, Medium, Small Size Text on Gutenberg RichText Block by using create-guten-blocks. These buttons add ClassName to the selected text when they are clicked. They are working...

View Article

HI, how can i show my JSON data to another html page in html table?

This is on the first page:scoreSubmit(){ var name = prompt("Unesi svoje ime:"); var objekat = {"name": name, "score": score}; var myJSON=JSON.parse(localStorage.getItem("textvalue"));...

View Article


How to map two different routes to the same Router

I have two routes in server.js : app.use("/credit/success", require("./credit/credit-handler")); app.use("/credit/fail", require("./credit/credit-handler")); And credit-handler :const express =...

View Article

React switch in render: div children no styling

so in my render() function I have a switch to conditionally load different components based on a type, the problem is that for one of the cases I had to render 2 components, so I wrapped them in a div,...

View Article


Webcam does not go to page

I want to do face recognition on the web but no image. How to fix this problem.I don't know exactly where the problem is. Please help me function view() {...

View Article

Merge objects with same id in array

I guess I have a dead simple problem but still didn't find a solution. I have an array which looks like this:var originalArray = [{ id: 1, elements: [1, 2] }, { id: 1, elements: [3, 4] }, { id: 5,...

View Article


retrieve data from database into html using flask

I want to display data from a PostgreSQL database in an HTML web page on clicking a search button. When I search with values of a row I am getting values of all the rows. I want to display the values...

View Article

NoUISlider - sticking values to their respective handlers?

I'm working on an e-commerce project that has a price range slider with two handles (min & max price filters). I decided to use NoUiSlider as it comes recommended. Although the plugin has no...

View Article

Is the first execution of a function always slower than the second?

I just noticed that if I have the exact same function and measure it's performance, then the first execution is always slower than the second one.I tried it several times and the result is always the...

View Article
Browsing all 139805 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>