Posts by Wendell • 1,312 points
72 posts
-
0
votes0
answers19
viewsQ: How to insert a value using Event keydown or keypress with Javascript / Jquery
I would like to know how to insert a word into the value of a input using keydown or keypress instead of setting the value by a method. For example, I don’t want to use a method like:…
-
-1
votes1
answer25
viewsQ: How to Join with 3 tables in Mysql
I have 3 tables in my database, which are: Table user: id name 1 User 1 2 User 2 Table pack: id name id_user 1 Package 1 1 2 Package 2 1 id_user is the foreign key of the table with reference to the…
-
3
votes1
answer685
viewsQ: How to get the url parameter in Nextjs
Guys, I have a question on Next JS, I have a page with name listid.js, when accessing for example http://localhost:3000/listid/10 I would like to receive id 10 as parameter on my page listid.js:…
-
0
votes1
answer389
viewsQ: How to make a Dynamic Checkbox with React Hook?
Guys, how can I make this dynamic checkbox? Because this way it is there I have to create a useState for each checkbox, but when I go to pull these values from the bank will come diametrically, how…
-
0
votes1
answer232
viewsQ: Display input text inside a div
I want to get the text that is typed inside a input and apply it within a div at the same time as the user type the text. And you will also have a select to change the color of the text that will…
-
-1
votes1
answer55
viewsQ: Sum of values of a column in PHP
I am trying to add the results of an SQL column, but it does not return anything in my function. Here you have a function that returns all the data in the table registros and the function that…
-
0
votes1
answer87
viewsQ: Collapse Horizontal Menu with Jquery
I am making a horizontal menu, in which the submenu will be opened in Collapse by clicking on the parent link. However I am not able to make the submenu open with jquery by clicking on the parent…
-
-1
votes1
answer210
viewsQ: Scroll slider by clicking link after other plays on jQuery
I have a code that when clicking an edit button hides a form (filled) and another form appears (for editing). This code also focuses on the input it was clicked on to edit. I would like to scroll…
-
1
votes1
answer124
viewsQ: Focus on Input by clicking Link
I am creating a code where clicking on an edit link will hide a particular form (with data loaded) and appear the form for editing this data. In my Javascript code / jQuery I have a function to…
-
0
votes2
answers150
viewsQ: Function in jQuery Ajax does not return Value
I am making a conversion from Brazilian Currency (Real) to Chinese Currency (Yuan). I am using the website API: https://free.currencyconverterapi.com . When debugging in the browser, I can see that…
-
2
votes1
answer293
viewsQ: Currency Conversion Using jQuery API
I am making a conversion from Chinese Currency (Yuan) to Brazilian Currency (Real). I am using the website API: https://free.currencyconverterapi.com. Turns out I can’t set the value to be…
-
1
votes1
answer69
viewsQ: Replace src field value with javascript
I’m trying to modify a function in this virtual store click here. On this product page, in the code html page, in the image gallery, there is the following code that refers to the main image: <a…
-
0
votes2
answers1321
viewsQ: String Comparison in jQuery
I have a question in string comparison using Javascript / jQuery. I want you to get the town on input id="cidade" is not Goiânia or Aparecida de Goiânia display the alert. But even when the city is…
-
0
votes1
answer544
viewsQ: Make a click fire another click after 1 second
I would like to know how to click on a button to fire another click after 1 second. I found this solution here. But I would like to add this delay of 1 second. Code: $("#button1").click(function(){…
-
0
votes3
answers49
viewsQ: Capture input value (Only numeric fields) and put in Div
I’m trying to create a function that takes the value of an input field and puts it in div. But I’m not getting it to work. Note: I need to take only the numerical values. Just follow my code: $(…
-
0
votes2
answers2849
viewsQ: Remove all White Spaces from Textarea
I would like to know how to remove all blanks from one textarea. I have a field textarea that copies the value to a second field textarea, would like to perform a function that removes space or line…
-
0
votes2
answers1048
viewsQ: Copy value from Textarea to Other Automatically
I saw this post (How to take the value of one input and assign to another? ) but I couldn’t adapt to the textarea. I have the following HTML, which I want to pass the value of the first textarea to…
-
1
votes1
answer64
viewsA: How to change html according to return value?
You can do this with Javascript and jQuery Note that I manually set the variable status with the value 0, you must change whether this value will come from the database or through another function…
-
3
votes2
answers1589
viewsA: How to apply the change in placeholder color only in some text-box
In this case you need to define a class for the placeholder that you want to change. Class selector You can "invent" a name and define it as the value to be assigned to the class (class) attribute…
-
3
votes1
answer349
viewsA: Return lower value of a SUM?
SUM function The function SUM() returns the total sum of a numerical column. MIN function The function MIN() returns the smallest value of the selected column. Return the lowest value As you want to…
-
2
votes1
answer49
viewsA: How to define CSS scope in wordpress?
The problem that is happening as @bfavaretto has already reported is that in your style sheet contato.css on line 7 is like this: .page-id-5 .hero .hero-body, .title { color: white; } The right…
-
8
votes3
answers590
viewsQ: Image Border within Select Radio after choosing an option
I have a virtual store in which it generates the following HTML of a select that has image inside it. I would like to hide the input (select radio ball) and display only one border in the selected…
-
3
votes2
answers3167
viewsQ: Script to Extract Values from the Infomoney Dollar Quote site
I have a PHP Code with a Jquery script that collects information from the Infomoney website and returns the commercial dollar quotation (Buy and Sell). I wonder how to update this code so that in…
-
1
votes2
answers7908
viewsQ: How Binary Tree Removal Works in C
I have several doubts about the operation of binary tree in C. I have a code and I’m having second thoughts about how the tree removal works. Could someone explain to me better what is happening in…
-
1
votes4
answers1314
viewsA: Position div below other after browser decrease
Just add a Media Query, for example, this code will make the div position below when the screen size is at most 720px. @media screen and (max-width: 720px) { .teste2, #teste { width:100%;…
-
6
votes1
answer5856
viewsQ: Doubts in Arvore Binaria in C - Printing order, pre-order and post-order
I have several doubts about the operation of binary tree in C. I have a code for insertion, removal and printing in order, pre-order and post-order. These codes were taken from the Internet, because…
-
0
votes2
answers1585
viewsQ: Load Iframe Target into a new Main Window Tab
I have an HTML page that incorporates a code iframe, my problem is that this embedded code has a form, which when filled out needs to be opened in a new tab, but this tab is opened inside the div…
-
1
votes1
answer53
viewsQ: Use fadeOut('slow') in Ajax Array that contains several id
Hello, I have an ajax function, in which I remove several lines in an html table. The function collects several id that will be deleted, I would like to make a fadeOut('slow') when the function is…
-
0
votes2
answers92
viewsQ: Error converting Ajax Array to Array in PHP
I’m having an error trying to pass an ajax array to PHP and I can’t find a solution, I was based this instruction, but I couldn’t make it work. HTML: <tr id="<?php echo $produto['idarquivo'];…
-
2
votes1
answer615
viewsQ: Warning error: mysqli_fetch_array() and no error returned in mysqli_error
I have a simple mistake and I can not find a solution, it seems to me that my problem is different from this answer here. The error message is this: Warning: mysqli_fetch_array() expects parameter 1…
-
1
votes1
answer364
viewsQ: Replace HTML entities within a Div
I have a code html and I need to replace part of it with another html, this code is inside a div. Code: <div id="aba-per" class="et_pb_module et_pb_tabs tab-per et_pb_tabs_0"> <ul…
-
0
votes1
answer96
viewsQ: Disable fields before radio button is selected Opencart
I have a jQuery function, which hides or displays some fields according to the radio selected. But I need to hide all fields if the radio is not marked with any value. The code works, but in…
-
1
votes2
answers531
viewsQ: Insert HTML into Link inside Div automatically with jQuery
I have an HTML code, where it has a link in an image. This link is created by a control panel and it is not possible to place a ID or a Classe in it. But the image with the link is inside a div who…
-
1
votes3
answers2458
viewsQ: How to delete Input Placeholder when Clicking inside the Field
I’d like to know how to erase the placeholder of a input when clicking inside it. When searching here I saw answers on how to delete the value but I found nothing about placeholder. I would like a…
-
1
votes1
answer394
viewsA: Correct permission for wp-admin Wordpress directory
By default Wordpress assigns permission 755 and in your documentation the recommendation is that you do not need to change the definitions it assigns as default. What you need to worry about is that…
-
1
votes1
answer54
viewsA: Problems with Footer
You can solve this issue of the second scroll bar easily. In your file style.css that is on this link: https://forum-alldispor.c9users.io/views/css/style.css In line 18 starting with html, body {…
-
8
votes2
answers1355
viewsA: Is there a way to redirect to another page by clicking on a div?
You can easily do this by placing a link before starting the div. See working here Thus remaining: <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"…
-
1
votes2
answers889
viewsA: Change the font in wordpress.com via css
With little information you passed, I will ask you to make these changes and in the comments you inform me whether it worked or not. Altere of: @import "//fonts.googleapis.com/css?family=Lekton";…
-
2
votes3
answers6155
viewsA: Code to send email message by Send button
I’ll explain how it’s going to work, you can give a read on the function mail to better understand later. We assume your page is index.html or contato.html, then just change the line of your current…
-
2
votes3
answers1181
viewsA: How to check if type="file" field has been filled
Basically you should just change $_POST for $_FILES. I took the required of your html for validation to work, so using the data you passed would look like this: View code in operation. HTML:…
-
2
votes1
answer1047
viewsQ: Disable Input if Specified Radio Button Is Selected
I have a registration form, which the person selects if she is a Legal Person, and appear the fields to fill when selecting and I have a Jquery script that does the validation so that it is…
-
2
votes2
answers432
viewsA: a calculator in php
You are picking up your form data in a wrong way. Instead of $_GET[$nt1]; should be $_GET['nt1']; and so in others. See the working code here. Follow the full example code based on your code: HTML:…
-
1
votes2
answers81
viewsA: PHP form without email field
It is good that you put a username and password authenticated to be used to send the email. See your code working here. Note that I added variables that authenticate smtp so that sending is done in…
-
2
votes1
answer60
views -
7
votes1
answer451
viewsA: How to adjust text around a 'div/image'?
You need to put the Div B floating inside the Div A and right after you put your text. As in this example: .principal{width: 500px; height: 500px; text-align:justify; background:#ccc; color:#000;…
-
0
votes4
answers1661
viewsA: Redeem name and show in option through id
As @Leoletto said: Do a Database search by selecting all fields with the id or just the fields you need: SELECT * FROM sua_tabela WHERE id = 'id' And in the input you put the data you want. Example…
-
0
votes1
answer538
viewsA: class panels bootstrap is not working
You are probably not using the latest version of bootstrap or you have not correctly called the css file. See here your code working (only includes the css and javascript file directly from…
-
0
votes2
answers374
viewsA: Ajax function is not working in Wordpress
I managed to fix it. First I added a function in the plugin’s main file, like this: function addCustomer(){ global $wpdb; $nome = trim($_POST['nome']); $email = trim($_POST['email']);…
-
0
votes2
answers374
viewsQ: Ajax function is not working in Wordpress
I am creating a plugin for CMS Wordpress, in it I have a script that runs perfectly until the part to make the request ajax to record some data in the database. The code works until the part…
-
3
votes3
answers2011
viewsQ: jQuery Run CSS Animation only when content is visible to the user
I’m using an animation library called Animate.css that can be seen clicking here. But by creating an effect for a particular div the effect is activated even if the div is not being visible on the…