Posts by Savrige • 522 points
14 posts
-
0
votes1
answer65
viewsA: Update Variable - SQL Database - Hibernate
Use the update method: public static void atualizarImovel(Object Imovel){ em.getTransaction().begin(); em.update(Imovel); em.getTransaction().commit(); }…
-
2
votes2
answers916
viewsQ: CSS animation: control which element respects the screen size limits
I made a basic animation of a div that oscillates between the left and right side of the screen indefinitely. It occurs that when reaching the right edge of the screen, the div exceeds the visible…
-
2
votes1
answer38
views -
1
votes1
answer605
viewsA: Search for the option title using select2
Customize the matcher from Select2. Using your example: $("#estado").select2({ formatResult : function(item) { var markup = '<div class="row">' + '<div class="col-lg-12">' + item.text +…
-
2
votes1
answer551
viewsA: How to know which version of JSP is in a project
Create a JSP and put the following code there: Version container Servlet: <%= application.getMajorVersion() %>.<%= application.getMinorVersion() %> JSP version: <%=…
-
1
votes2
answers367
viewsA: Resize image with CSS
Use the background-size: cover property to resize the background image. For example: body{ background-image: url('beach.jpg'); background-size: cover; }
-
2
votes2
answers1125
viewsA: How to differentiate inputs that have the same class?
use this object. For example: HTML: <input type="text" class="button"/> <input type="text" class="button"/> jQuery: $(function(){ $(".button").click(function(){ this.value = "novo…
-
11
votes2
answers11484
viewsQ: How to make a dynamic form?
I implemented a script that dynamically adds fields to a form, in this case a form to add products and their amount. The code is here: http://jsfiddle.net/3Lzcn7dc/ I find this code very…
-
-2
votes3
answers3146
viewsA: Tag <img>. When loading an image from the bank it appears lying down
Try removing the height: .imagem-grupo-cadastro{ width :140px; float: left; margin-top: 15px; }
-
4
votes8
answers12405
viewsA: How to switch between true and false checked input?
Try this: Teste: <input type="checkbox" id="ck" checked/> $(document).ready(function(){ $("#ck").attr('checked', false); });
-
2
votes1
answer970
viewsQ: Setting a margin in a background image
Consider the following html code: http://jsfiddle.net/qt7dsx7b/ In the fiddle a div was defined with an image located in the upper right corner. It turns out I would like to add a margin between the…
-
1
votes2
answers246
viewsA: Fix problem with float in Google Chrome
See if it helps you: http://jsfiddle.net/Borachio/k251jeem/ I made a small adaptation in html, placing the label and the two inputs inside a div. Here is well aligned.…
-
3
votes1
answer3504
viewsA: Display block with Onclick
Try the following Javascript: <script> function exibeDiv(){ var div = document.getElementById("back"); div.style.display = "block"; } </script> Html: <div id='back'…
-
2
votes1
answer2012
viewsA: How to change CSS settings for all Divs with jQuery
thus: <script> $(document).ready(function(){ $('.altoContraste').click(function(){ $('div').css('background-color', '#000'); $('div').css('color', '#FFF'); $('a').css('color', '#FF0'); }); });…