Questions tagged as 'jquery'

1
answer

How to traverse the siblings with jQuery?

What I want to do is that when I hover over a star, all previous ones have a "selected" class, I tried to use siblings together with each one and I almost got the result where I wanted it. The result I want to get is something like this: JQU...
asked by 28.05.2017 / 18:32
1
answer

How to change html according to return value?

I made the jQuery datatable server side all right activation. All functional. However, in the first column I return 1 for active and 0 for inactive. I wanted it to be 1 (active), appears in the place of the number 1 : <i class='ace-icon...
asked by 06.07.2017 / 17:13
1
answer

I want to click on a link when I click show a div and when I click on another link show another div and disappear the previous one

It's simple but I can not do it. When I click on link1 show the div1, and if I click on link2 show the div2. And if I click on link1 again with div1 showing it should disappear, I know I have to use the toggle method but I can not. $('.zik...
asked by 05.07.2017 / 14:56
1
answer

List is being populated but the properties are null

Hello, I'm using the following method in C #: public ActionResult Gravar(int pCodigo, string pDestino, int pRespDestino, int pOs, int pProjeto, string pEstabelecimento, string pObs, int pPim, string pAlmoxarifado, List<RequisicaoIte...
asked by 06.07.2017 / 21:40
1
answer

How to apply sessionStorage or localStorage in code

I'm using the following code: <script type="text/javascript"> $(window).scroll(function() { if ($(this).scrollTop() > 300){ $('.float-menu-fixed').removeClass("closed"); $('.float-menu-fixed').addClass("visible"); }...
asked by 21.05.2017 / 07:46
1
answer

How to make two RadioButtons enable and disable fields

Each radio button enables and disables two fields, two by two. When the first radio is clicked the first two textBox are enabled and the last two are deactivated. When the second radio button is clicked the first two textBox are di...
asked by 23.05.2017 / 19:08
1
answer

Foreach does not have marked fields

Colleagues. I have the form below where I place the size, stock and if the product is to order. If it is to order, just select the product as shown below: Thesizeandstockcanusuallypickupthevalues,buttheOrderfieldonlybringsmethefirstvalue.See...
asked by 23.05.2017 / 21:55
1
answer

jQuery and css menu

The icon is not aligned equal to the text Well follow the code of the menu, I thank you for the help. $(".top_menu ul").each(function() { alignMenu(this); var robj = this; $(window).resize(function() { $(robj).append($($($...
asked by 24.05.2017 / 03:27
1
answer

How To Get Root Selected Jstree

Galera, Good afternoon, A Doubt, I'm using JsTree and I need some help. When I select child nodes: I can get the same through the script: $('#arvore').jstree(true).get_selected(). But I can not get the "Parent" nodes (th...
asked by 05.05.2017 / 19:59
2
answers

how to filter a json object?

I have the following json object: var json = { "acao": "listaHoteis", "hoteisPesquisa": [ { "home_id": "1", "nome": "Itamarati" "preco": "925" }, { "home_id": "2",...
asked by 07.05.2017 / 13:35