Questions tagged as 'jquery'

1
answer

TextBoxFor returned Null Post

I have a form in which I make a query to an API using jquery. The query returns the data and populates the textboxfor with this data: $.getJSON("//viacep.com.br/ws/" + cep + "/json/?callback=?", function (dados) { if (!("erro...
asked by 16.06.2016 / 22:40
2
answers

Hiding a div while showing another

I have a problem hiding a div when I show another. If I use .conteudo_ up instead of id2 I can do this effect, but it does for everyone at the same time and I want for each one individually. How do I do this? link HTML...
asked by 06.06.2016 / 10:36
2
answers

How can I get the id in classes with equal names?

How can I get the id of the alternative and know if it is 0, 1 or 2. <div class="quest-alternatives"> <p class="brand-alternative"> <span class="brand-id hidden" style="display: none;">123</span> <span class="radio-b...
asked by 06.04.2014 / 23:32
1
answer

I can not hide SCM Music Player on Tumblr

I'm trying to hide the SCM Music Player and expand the main container to 100% (because the player reduced it slightly in the bottom) in my Tumblr blog but my code does not work. The Javascript code: setTimeout(function () { $(function()...
asked by 15.12.2014 / 03:04
1
answer

How to handle Ajax requests with business error?

I searched the internet and still did not find a mature enough answer to a problem. I have an Ajax request and taking errors thrown by the application as a possible connection crash, for example, I do not want to throw an exception if I have...
asked by 12.12.2014 / 21:47
4
answers

Add variables to get end date

I have a form with a lease registration. In it, I have the fields $datainicio , $meses and $datatermino . The start date I put automatic, according to the date of the day. The months should be placed at the time of registratio...
asked by 28.03.2016 / 20:19
3
answers

Default date format brazil does not work in bootstrap

I have this bootstrap datepicker component <div class="col-md-2"> <input id="dataSolicitacao" type="text" name="timepicker" class="b-datepicker form-control form-white" placeholder="Informe a data" data-orientation="top"> </di...
asked by 01.04.2016 / 13:15
1
answer

Send multiple values from my CheckBox to an Ajax call

I have a button that when I click calls my ajax function. I want to send the values that were selected in my checkBox. But what comes to my controller is just the first value of my CheckBox.    Sunday And you should send all values selecte...
asked by 15.04.2016 / 13:04
1
answer

Working Dynamic Selectors (or Multiple Selectors) in Jquery

I have a Javascript (Jquery) code that takes characters from one DIV and throws this result to another DIV. For the DIV where I get the characters I created a function that adds a class dynamically, being p0, p1, p2, and so on. See: $('.listag...
asked by 18.06.2018 / 02:05
1
answer

Auto Fill Input on another browser tab via script

Is there a script that sends the value of my input to the page input I open? As the example below shows, I need to send the value "12345" to the XYZ page input as soon as I click on the link to open it, to speed up the search by code. My s...
asked by 06.09.2018 / 15:40