This is a heart with a wishlist, I want to add the product to my wishlist. I have a syntax error in the console Uncaught SyntaxError: expected expression, got ‘}’ Dreamweaver shows me no errors <…
Tag: javascript
how to get price from database in php and javascript
I am new in PHP and javascript I am creating an order form that has four fields customer, product, price, amount what I want. when I select a product it will get the last order price of the selected customer if he already exists. if the new customer then gets the price from the product_list table. here is my …
Submit forms from both parent and iframe to same target
Parent form Iframe form This JS works fine submitting from Iframe using a button placed in parent I try to modify JS with document.getElementById(“form1”).submit(); to send parent form as well but I end up with results only from one form and not both Answer this worked for me
How do I make my dataTable sorted if the data is ACTIVE or INACTIVE using JQuery and Ajax?
My goal is that I want to sort my data if it is still ACTIVE or INACTIVE. But the result I’ve got is that if I click active it only shows the active data and when inactive it doesn’t show. I don’t have syntax errors but logical errors. I am using PHP, JQuery/AJAX. Here is my code in HTML Her…
fetch doesn’t send autofilled input
When my login credentials are prefilled by my browser (chrome) my fetch function doesn’t send the values html
Bienvenue
WordPress site hacked redirect
i have a wordpress website and i saw that when i try to view the source code with chrome its show me this (look at the code): so i search it in my files and found a file called lt_ that has that …
Display option data with php and hide the similiar
I’m using php to select data from my database. I’m displaying it in a HTML select option tag. I have 100+ options and I want to hide which is the same as my selected data. For example: For example the $type variable is “c”. So it displays the option “c” twice. How can I eas…
Capture text inside a using JavaScript
I need to create a shopping cart. When I click the button “Add to Cart”, the item in the “p” should appear in the screen. PHP JAVASCRIPT Answer The p tag is not a object with value attribute, you should use: but first of all you must change your PHP code, you generate multiple tags wit…
How to open a text in the same html page by not creating a same page?
For example, when I open a topic, it would open in the same html page, not redirect to another address: http://web.archive.org/web/20090409012115/http://www.europeangoldfinch.net/home.htm# I want to make it exactly like this (clicking on a topic). I downloaded the source files from web archive, but when I cli…
Database update through checkbox change
For my thesis, I am working on a program for checking cars. Currently, I am working on the user management now I have encountered the problem that the database needs to be updated when a checkbox is changed status. Image checkboxes: Now I have already started looking a bit on how to execute a PHP function whe…