Questions tagged as 'jquery'

2
answers

Crop image with JS

You can use JCrop or some other library to crop image, but I set a default size? Who can just move the square over the image? I tried to use JCrop but the user is the one who defines the size that wants to crop the image.     
asked by 14.06.2014 / 17:37
1
answer

How to get attributes from an option field with jQuery

I have the following code: <select name='exemplo' id='exemplo'> <option value='1' class='teste' dado='a'>1</option> <option value='2' class='teste' dado='b'>4</option> <option value='3' class='teste...
asked by 10.08.2016 / 16:48
2
answers

How to put a phrase inside a form field and it disappear when clicking inside the field?

I would like to know how to put a phrase inside a form field, and it disappears when you click inside the field. Can it be in CSS? What do you do this for?     
asked by 10.12.2015 / 15:49
2
answers

Jquery mask in dynamically created fields

I have a product values registration page, where I have an input field with a value mask in R $. But since this field is created dynamically after a search in the bd, the mask is only working on the first input. I know of a solution but it does...
asked by 05.06.2014 / 21:08
3
answers

Javascript - Make article appear when clicking on a li

I have a small question in my project that I am developing. I need to make certain <article> appear when a particular <li> is clicked.    Example <li> 's <li id="menu-CARD">USAR CARD</li&g...
asked by 28.09.2016 / 08:29
3
answers

How to redirect the site when it is a mobile?

I have the following code that should work, but in mobile it does not work in the chrome browser: var permitir_mobile = true; var mobileUrl = 'http://m.meusitemobile.com.br'; $(document).ready(function() { var e = window; redirectIfWi...
asked by 28.07.2016 / 14:34
2
answers

How to get Date in the format day, month, year and time with JQuery

I have a code snippet that I can get the date and time, but the date is in the format Mês/Dia/Ano followed by the time, but I need the format Dia/Mês/Ano followed by the time, I already tried to change the form but it was incorrect...
asked by 08.04.2015 / 14:57
2
answers

How to move one element to the other's position with JQuery?

I have an element and want it when the user hover over it, it should go to the position of another element. For example: I have the element A and I have the element B , when the user moves the mouse in the A element, I nee...
asked by 13.02.2015 / 18:29
4
answers

Sort DateTime field of a DataTable

Hello. I have the following DataTable: success: function (data) { $('#table-controle').html(data); $('#table-controle').DataTable({ "language": { "url": "../../../Content/json/...
asked by 23.08.2016 / 15:13
2
answers

How to call different modals, without using a database

I'm having some difficulties, I know this is not the ideal way, but it's what I need right now. I have a list medicos and I need to call a different modal for each of them, without a static database. Follow my code: <section class...
asked by 19.12.2016 / 15:13