Posts by André Albson • 308 points
14 posts
-
0
votes1
answer106
viewsA: Recovers input value and compare with jquery value
$('input[name=amount]').focusout(function() { var valorDigitado = parseFloat($(this).val()); if (valorDigitado < 25) { $('input[name="amount"]').val(25.00); showError_amount(); } else {…
-
3
votes3
answers236
viewsQ: Check if array contains specific character
I need to check if an array has a specific character (this: | ). If it does, that character should be deleted and the next word that would be after that character (which is actually an item…
-
0
votes1
answer268
viewsA: Problem listing data in JSP
I already identified the error and corrected it. The error was in Medicodao and Medico.
-
-1
votes1
answer268
viewsQ: Problem listing data in JSP
I cannot do Data Listing. You are giving "Error Processing request", Servlet Path:/pages/data.jsp Path Info:null Query String:null... I don’t know what it is. Thank you for any help. OBS.: I’m…
-
3
votes1
answer80
viewsQ: How do I have at most one selected leader in all selects?
How do I make to when I select the Leader option, the javascript do not allow another function to be selected (multiselect)? The scenario is as follows: Each select represents the functions of each…
-
3
votes1
answer861
viewsQ: How do SELECT not allow selecting an option already selected in another select?
How to make it select don’t allow that the "Leader" option is not duplicate, because in my business rule only one user can be a leader. I thought the following: Assuming I have 3 selects. If I…
-
0
votes1
answer549
viewsQ: How to check if a select already has an option selected?
I have a page where there are some selects (representing the functions of users, in which they can be: Leader, Participant or For Knowledge). There are some business rules: 1- If the user is…
-
1
votes1
answer143
viewsQ: How do I stop when an option is disabled in select, jquery detects that action (deselect)?
I have a problem when I uncheck an option on a particular select. I cannot make the select option, when unchecked, return to its initial state, that is, how to reset. So, I thought Jquery detect…
-
0
votes2
answers6733
viewsA: Centralize Web Page Content
The answers above give you a hint to get what you want. But another and much more current option is the use of "CSS flex". Take a read later. It will help you in many cases of placements.…
-
0
votes2
answers213
viewsQ: How do select go back to the initial state after "deselect"?
How to make sure that when I unselect a specific select option, it goes back to "initial state"? Here’s a simulation of my problem: https://jsfiddle.net/andrealbson/o1xs3m8x/…
-
4
votes2
answers734
viewsQ: How to remove "disabled" attribute from the parent select option?
I need that only in the select option that is selected the "Leader" option, it does not assign the "disabled", only in the other selects daughters. The logic is that only a user can be a leader, but…
-
0
votes1
answer1898
viewsQ: How to disable <option> according to <option Selected>?
I have a list of users and each of them will have one or more functions (example: Leader, For Knowledge, Participant). If I choose the "Leader" option, the other options (from the same select)…
-
3
votes1
answer340
viewsQ: How to view a list from a Json sub-array?
I’m building Ivs dynamically via Javascript. I want to make its content display some information (usernames, emails, etc). The data is coming from the database in Json format. The problem is that it…
-
0
votes1
answer569
viewsQ: How to replace the contents of an array?
I have a div (users' mosaic) that within it has a array (javascript) with photos of users(data coming from the database). The amount of photos of users must be less than or equal to 15. If the array…