Questions tagged as 'javascript'

2
answers

Print div with styles in JS

Good afternoon friends of the community, today I come with a question that I hope you can help me solve, it turns out that I want to print a div with JS but when sending the parameters in the function the styles do not respect them and the file...
asked by 17.05.2018 / 20:32
1
answer

How to separate the rows of a textarea in different variables? JavaScript

I want to count the data separated by a comma (,) of a row of a textarea to verify if any data is empty, if it is empty the save button is disabled. - Each row has a maximum of 3 data separated by a comma. I have a function that when you s...
asked by 20.07.2018 / 17:00
2
answers

How to replace parentheses closing sign in javascript

how to replace the parenthesis closing symbol using new RegExp I'm trying to do the following and give me error var string = "(hola)"; console.log(string.replace(new RegExp(')'),'g'),'&#41'));    // generates the following error (index...
asked by 20.07.2018 / 03:36
2
answers

Slider in javascript does not load me when migrating web hosting

This small and basic slider worked well until migrating to a new hosting no longer runs javascript and loads all the images without making the slider: <script src='http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js' type='text/ja...
asked by 15.10.2018 / 12:00
2
answers

How can I solve this problem in spring boot + bootstrap + jsp

Greetings I have the problem I am using spring boot and bootstrap v4 so I want to show a combination that shows me the data in a form but it does not show me I leave the corresponding code and also solve the error that I previously published in...
asked by 10.07.2018 / 11:28
2
answers

Stop gif in the login

I have made a login and I did that when I hit the enter button it will show a gif of loading .. and it shows it but if in this case they are not the correct credentials follow the gif, that is I do not know how to stop it, the idea is put someth...
asked by 10.07.2018 / 08:18
3
answers

Enable / Disable Checkboxes by clicking on another different checkbox using jQuery

I am developing a form that contains a checkbox list, which belong to the class .causa , likewise there is a checkbox of the class .without_cause which I intend that disables the checkboxes mentioned initially. Searching the Internet I found...
asked by 25.04.2018 / 20:58
4
answers

Change select by selecting the sex on a radio button

How can I change my selection by choosing the sex of the person? this is my html code                <link rel="stylesheet" type="text/css" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> <link rel=...
asked by 25.04.2018 / 22:04
1
answer

Improve this script (linting). Function statements should not be placed in blocks

First, I apologize if the question is very silly since I do not handle much of the subject. I'm doing this script and I test it with lint javascript I throw 2 warning that could improve    1 Unnecessary 'else' after disruption.       } else {...
asked by 28.04.2018 / 15:31
1
answer

Change color to accordion of Materializecss

I have an accordion from Materialize that when clicking shows a table, what I want to do is that when I give in the "title" (the div that has the collapsible-header class), I change the color class of that same div and when I click to return to...
asked by 19.04.2018 / 17:36