Questions tagged as 'jquery'

1
answer

Difficulties in feeding a TextBox and a ComboBox with jQuery

I have no difficulty in passing any value from my View to my controller via jquery. Now the opposite can do nothing. I tried this way: $('#meutextbox).val() = data.minha_result_da_controller.meu_campo; So nothing. $('#meutextbox)...
asked by 29.10.2014 / 23:26
1
answer

GET image / gif with jQuery

I tried this however the Chrome Developers utility recognizes dataType as xhr $(document).ready(function() { $.ajax({ type: "GET", url: "/img/img.gif", dataType: "image/gif", cache:...
asked by 24.05.2015 / 02:20
1
answer

Contents of browser screen size

On many portfolio sites, we can see sections (usually with images) that occupy the exact space of the user's browser, such as this site here . I searched but found nowhere to perform this effect of holding multiple sections of the same brows...
asked by 01.12.2014 / 14:15
1
answer

Property is coming as Undefined

In the controller I have a lambda that returns me three fields. When I squeeze in jquery it tells me that the property is undefined. I think that's the way I try to get value. Can someone help me there? controller: [HttpPost] public JsonRes...
asked by 05.11.2014 / 17:51
2
answers

How to return 2 decimals in a monetary value with jQuery?

How can I handle this string so that it returns only 2 decimals after the point? $(".subtotal2").text(23.90); var sum = 0; $(".subtotal2").each(function() { var val = $.trim( $(this).text() ); if (val) { val = parseFlo...
asked by 15.10.2014 / 06:10
2
answers

Receive id of an autocomplete option

I have the following autocomplete defined in HTML HTML <label class="input"> <input type="text" list="list" id="entidade" placeholder="Cliente" onblur="dadosCliente ( )"> <datalist id="list"> @for(entidade...
asked by 06.02.2015 / 12:26
1
answer

Hide and show button in a DataTable with jquery

I have to show or hide a button inside my DataTable as the return of an ajax function. I can already hide (I hide all by default) and I already know when I have to show the button, the problem is that I can not show the specific button of tha...
asked by 06.02.2015 / 11:40
3
answers

Add DIV's with different ID's using Jquery

Hello, I tried several gambiarras (unfortunately) but I can not find a solution to my idea. I have an "app" that creates a task list, only I would like to add to my list a different id for each div added inside the div main%. var ma...
asked by 09.04.2015 / 14:42
2
answers

List validation with jQuery [closed]

I'm solving some exercises in javascript and I came across a situation I can not solve. I have a small "application" that creates a task list, so far it works normally, I can add a new div inside the main div. however, I need to check if the...
asked by 09.04.2015 / 14:33
1
answer

Refresh on page when giving resize

I have my function to resize, function resizeGrid() { $(".divGrid").css("height", ($(document).height() - 325) + "px"); } $(resizeGrid); It works as I would like, but when testing in the browser, I always have to give f5 s...
asked by 20.08.2014 / 21:55