Posts by Afonso • 409 points
20 posts
-
1
votes2
answers22
viewsA: backgroundColor is not working on Chrome (Jquery)
Good morning, try it like this: $("exemplo").css({"background-color": "green", "color":"blue", "border":"1px solid blue"}); Source: https://www.w3schools.com/jquery/jquery_css.asp…
-
1
votes2
answers33
viewsQ: Hiddenfield value always zero
Good morning, I am learning Asp.net and I came across a problem in my code that I do not know how to solve. I have a gridview that is fed by the database and I have a button that calls the…
-
3
votes2
answers859
viewsQ: How to change the border color of a Modal Bootstrap
I created a modal with bootstrap and I would like to know how I can change the border color of the modal without changing the structure of it, thanks in advance!
-
0
votes0
answers90
viewsQ: How to increase modal size?
I have a modal that is powered dynamically by BD and I would like to be able to increase its width however the most I can find is to add the modal-lg class but I need a larger width, what I can do…
-
1
votes2
answers28
viewsA: Adding 0.1 to a setInterval gives rounding problems
Here is an example of a method you can use: .toFixed() <div id="total"> </div> var myVar = setInterval(myTimer, 1000); var total = 0; function myTimer() {…
-
1
votes1
answer21
viewsQ: Centrar Heading
I have an Heading with bootstrap Display-4 class inside a Jumbotron and I’m not getting to center just this Heading, thank you. <div class="jumbotron mt-5 pt-4"> <h1 class="display-4…
-
2
votes1
answer47
viewsQ: Change the position of a Commandfield in gridview
I’m a beginner and I’m trying to create a dynamic table that can be edited and deleted certain fields so I decided to use gridview. The problem I cannot solve is the position of this commandfield…
-
1
votes4
answers553
viewsA: Get values from a multiple select (Materialize)
Try it this way: $(document).ready(() => { $("select").material_select(); $(".jsBtnSaveValuesNotificationsShedule").click(function(){ var ArrayValores = []; select = $('.jsSelectedSchedule'); ul…
-
4
votes1
answer2412
viewsA: How to open instagram using iframe?
You can’t open Instagram that way because it doesn’t allow external websites to frame their website. The only way to put instagram in a frame is to be a Post, for example…
-
1
votes1
answer63
viewsQ: Onserverclick is not running
I am trying to create dynamic buttons to delete users from a database but onserverclick simply does not run the function. This is my code so far: yourHTMLstring += "<td>" +…
-
0
votes2
answers133
viewsA: If with tab active
There is a simple way to check the class of an element: if(document.getElementById('negociosRealizados').classList.contains("active")){ //codigo }
-
1
votes2
answers29
viewsQ: I am unable to create a dynamic Jjquery Div
I’m a beginner when it comes to Javascript and jQuery and I’m trying to create a dynamic div, my goal is to create an Alert bootstrap whenever the button is pressed but I’m not getting it to…
-
0
votes0
answers17
viewsQ: Button to scroll up on the page is giving an unnecessary load
Good afternoon, I created a button to scroll up the page every time the user scrolls but every time I click the button it gives a strange load. This is my script: <script> // When the user…
-
0
votes1
answer88
viewsQ: Remove a value from a radio button menu
Good morning, I’m trying to make a star rating system with javascript but I’m not getting a value out of the choice of radio Buttons menu. The Add button serves to add the value that each radio…
-
0
votes1
answer163
viewsQ: How to add value to an input without removing the value that is already there?
Good afternoon, I’m having trouble finding a way to add value to a readonly input without eliminating the value that’s already in that input. My layout consists of two inputs and a button, the first…
-
0
votes2
answers299
viewsQ: Send the value of one input to another input that is readonly
I’m having trouble sending the value of an input to another input readonly, my goal is to add the text that is in the first input in the other input by clicking the Add button, I’m currently testing…
-
1
votes1
answer118
viewsQ: Positioning of a button
I’m having a hard time positioning a responsive button, whenever I can place the correct position on a screen with a certain resolution whenever I see it on the other screen it gets bad again. This…
-
1
votes1
answer35
viewsQ: How do I make an "a" tag active without refreshing the page?
I have a line with several links, each link is an alphabet letter, I wonder if there is any way when I click on a letter changing the style or just make the link active without refreshing the page.…
-
1
votes1
answer60
viewsQ: Error with positioning an HTML/CSS/BOOTSTRAP search bar
I’m having a problem positioning the search bar, I want to cover it to the right but I’m not getting it, I’ve taken the padding and the margin and it’s still the same. (Colors are to demonstrate…
-
2
votes1
answer45
viewsQ: Error with Html/Bootstrap text alignment
I’m having a problem with a website I can’t fix. I’m trying to make an information card without using a Bootstrap card because I want the image to be on the left side so I decided to do something…