Posts by LLeon • 2,257 points
66 posts
-
0
votes2
answers1020
viewsA: Delete record being duplicated in query with Inner Join
My real goal is to list only the products, in fact I do not display on the screen these features, I list only the name of the products, but use filters... If I got it right, what you want is to list…
-
0
votes2
answers133
viewsA: Resize when clicking on toggle
I understand you want to leave the #g-intro always with the height of the screen. In that case, to open a div larger inside, this should adjust to the size of #g-introand have in the css the…
-
1
votes1
answer550
viewsA: how to use callback in window.print()
Try just with css @media print { .no-print { display: none; } .print-only { display: inline; } } @media screen { .print-only { display: none;} } <div class="no-print"> Só aparece na tela…
-
2
votes3
answers937
viewsA: How to add a div or <p> inside a table
See if that solves your problem: var tabela = $('table.tab_dados'); tabela.find('tr:odd').addClass('odd'); $('<tr class="obs"><td…
-
0
votes4
answers1392
viewsA: Return True or False in jQuery’s Success
$.ajax({ url: $("form").submit(), type: "POST", data: strFomr, //Retire isso. contentType diz o formato enviando para o servidor //contentType: 'application/json; charset=utf-8', //Use dataType que…
-
0
votes4
answers1845
viewsA: How to identify Focus in a div?
That’s the result you want? Sorry to reactivate, I got confused with the dates and I thought it was this year. Now that I saw Feb 2016. :| What I moved was to add another class to toggle of jquery…
-
0
votes3
answers1895
viewsA: how to call a php function through ajax?
You click on span and nothing happens? That’s it? If that’s the case, try it this way: $('body').on('click', '#link', function () { $.ajax("functions/logout.php",{ }).done(function(){…
-
0
votes3
answers1198
viewsA: Block event click element
$('body').on('click', function (e) { if (e.target.id === 'black-courtain') { $('#black-courtain, .popUP').hide(); } }); This will hide the curtain and the popup whenever the user clicks on the…
-
1
votes3
answers3583
viewsA: Get input sum value with Jquery
There are many ways to achieve this. I will collaborate with an example where it is necessary to work with decimals and disregard non-numerical values; $('input').css('margin-bottom',…
-
0
votes1
answer214
viewsA: How to set toggleClass (jquery) speed?
You forgot to add the classes in the test col-md-10 and col-md-12. In addition, the jquery.ui $(document).ready(function() { $("#help").click(function() { $("#faq").toggleClass("col-md-10", 500);…
-
0
votes4
answers2314
viewsA: How do I insert the value of a variable into an HTML attribute using pure Javascript
In its function that returns the value of the attribute data-channel-external-id you can identify the button that was clicked and return the value that is convenient. I used the attribute data-botao…
-
1
votes1
answer1358
viewsA: Sales Ranking Report
I think it might help in future doubts with a similar situation: Assuming the following data source datavenda vendedor valor 2015-04-01 FULANO1 700,00 2015-04-02 FULANO1 300,00 2015-04-01 FULANO2…
sql-serveranswered LLeon 2,257 -
2
votes3
answers906
viewsA: Format date on page load
If you cannot change how data comes from the base, use the following: $(document).ready(function() { ajeita(); }); Will set the format in all fields with the class form-control Test in the snippet…
-
4
votes4
answers1951
viewsA: Upload with Ajax and formData does not send data
Try to change that: submitHandler: function (form) { var data = $(form).serialize(); If you really need to send a JSON to the server, then it won’t do... But try this and see what comes to the…
-
2
votes1
answer351
viewsA: Add class to on scroll element
Assign the event wheel for the tag body. $('body').bind('wheel', function (e) { if (e.originalEvent.deltaY < 0 ) { $('body').removeClass('sua classe') } else {//rolou pra baixo…
-
0
votes1
answer77
views