Posts by Thales Chemenian • 354 points
13 posts
-
0
votes3
answers35
viewsA: Take attribute value when page is loaded and select or modified
Instead of: $('#formaEntrada').on('ready change', function() { var IDConta = $("#formaEntrada option:selected").attr('data-idconta'); $("#contaBancaria").val(IDConta); }) Utilize:…
jqueryanswered Thales Chemenian 354 -
2
votes1
answer126
viewsA: How to keep the line of a bootstrap table active looking
You can use the Contextual Classes of bootstrap: v 4.3 - https://getbootstrap.com/docs/4.3/contenttables/#contextual-classes v 3.3 - https://getbootstrap.com/docs/3.3/css/#Tables-contextual-classes…
-
0
votes1
answer454
viewsA: How to remove a JS mask from an input when submitting the form?
You can try using the method replace, for example: var a = "1.234,56" a = a.replace(".", "") a = a.replace(",", ".") a = parseFloat(a) In place of the variable a use the variable that is returns the…
-
0
votes2
answers757
viewsA: Responsive Font-Awesome icon - How to replace icons when clicked?
You can do with jquery using the click function: Inside the jQuery pageload $("#teste").click(function(){ if($(this).find("i").hasClass("fa-sort")){…
-
1
votes3
answers42294
viewsA: Select option from a select
To get the description of the selected select: $("#faturamento-mes-referencia option:selected").text(); To get the value of the selected select: $("#faturamento-mes-referencia").val(); To select a…
-
1
votes1
answer291
viewsA: Solve Toogles bootstrap and Checkbox conflict
This is not a conflict, what is happening is that in your code, toggle is set to activate when it clicks on the entire area of the header, including the checkboxes that are part of it, for example:…
jqueryanswered Thales Chemenian 354 -
0
votes2
answers370
viewsA: Autocomplete in dynamic fields
What happens in your code is that you are initiating the autocomplete at the beginning when only one element exists and is selected, so the only and the first element that is already created…
-
1
votes2
answers59
viewsA: How do I delete previous value using javasript
You can simply clean up using the function .empty() Instead of using $("#cidades").children(".cidades").remove(); use: $("#teste").empty(); This way it will remove all elements within your element…
-
5
votes2
answers589
viewsA: How to activate onclick after a jquery?
Here is another question on the same subject: How to ensure that an element will have the DOM event? Use outside the pageLoad: $(document).on("click", ".meusbtns", function(){ /*Seu Código*/ }); The…
-
0
votes2
answers251
viewsA: Change layout according to each button
When accessing the page I noticed that you use jQuery, which already makes it easier, as you have already done the click and managed to identify which user already clicked, I will put only some…
-
0
votes1
answer122
viewsA: Notification system, _.template(...). html is not a Function
The syntax of both libraries is incorrect: According to the documentation of underscore.js You need to send an HTML element as a parameter to _.template(); For example: var template =…
-
0
votes2
answers1086
viewsA: How to maintain scroll position within a div after dynamically upgrading with AJAX?
As I cannot comment, I will deduce that you are destroying the elements and populating again according to what you return in your Ajax request, if you are doing so, this behavior of the bar going to…
-
4
votes1
answer94
viewsA: How to ensure that an element will have the DOM event?
Have you tried using the click event this way? $(document).on("click", "#btnPreviewEmail", function(){ /*Seu Código*/ }); The code must be outside the Pageload of the script. Difference between the…