Questions tagged as 'jquery'

1
answer

Catch value on an item checked from a checklistbox

I have this checklistbox. <div class="col-md-6"> <h3 class="text-center">Unidade de negócio</h3> <div class="well" style="max-height: 300px;overflow: auto;"> <ul class="list-gr...
asked by 25.08.2014 / 17:41
1
answer

dynamic div + php

I need a table that is updated every instant automatically, like the facebook timeline that updates itself. I think in jquery you can do this, does anyone have any ideas?     
asked by 22.08.2014 / 14:24
1
answer

Open modal window automatically when opening the page

I am trying to use the jquery .load function, replacing .click. Because the intention is for the lightbox to open while loading the page and not clicking. JS TO OPEN THE MODAL WINDOW BY CLICKING ON A LINK $(document).ready(function(){...
asked by 22.08.2014 / 02:40
2
answers

After selecting with Select2, how do I automatically fill in form fields?

I am creating a form that has a field that the user will enter the company name and Select2 will perform a search in the DB and return the company name to the field, example in the image below: HTMLscript:<scriptlanguage="JavaScript" type=...
asked by 28.07.2014 / 16:16
2
answers

jquery method does not pass parameters to controller

Jquery does not pass parameters to controller. The values are coming in blank. Jquery: function GravaEvento() { var str = ""; var parametros = jQuery.parseJSON('{ "DE_Cnpj": "' + $("#txtCnpj").val() + '" , "DE_Descricao": "' + $("#txtDe...
asked by 04.07.2014 / 00:06
1
answer

How to control individual classes in jQuery?

I recently created this HTML document: <div class="wrap"> <div class="container"> <a class="button" href="#" title="Abrir as opções."></a> <div class="option-box"> <ul> <li>...
asked by 15.10.2014 / 21:12
2
answers

Make string uppercase before dash

How can I convert a string to uppercase before a dash (-) as it is typed using jQuery / JavaScript? Example text: "ab- Hello world cx- Okay?" Output: AB- Olá mundo CX- Tudo bem? // $('textarea').keyup(function(){ $(this).val( ?...
asked by 24.09.2014 / 14:20
1
answer

Get the value of the input closest to a [duplicate]

Given the code below, how do I get from button.like or button.dislike , to the value of input#avaliacao_item_id (2) by jQuery? <td> <button type="button" class="btn btn-primary btn-md like"> 0 <sp...
asked by 31.08.2014 / 22:22
2
answers

Date picker opens alone when changes neighbor input

Good morning, I have the following code: var maxDate = new Date(); maxDate.setDate( maxDate.getDate() + 364); $(".dtpBloqueio").datepicker( { numberOfMonths: 2, dateFormat: 'dd/mm/yy', maxDate: maxDate }); When you change an in...
asked by 03.09.2014 / 15:43
1
answer

Drag & Drop JQuery UI how to hide Div after drop?

I'm trying to do the following operation, I have 3 divs a Droppable and 2 Draggable, I want that when I drag one of the draggables and drop on top of the droppable Draggable is hidden from being displayed on the screen. <div id="" class="dro...
asked by 24.05.2014 / 13:31