Questions tagged as 'jquery'

2
answers

Sending form via jquery ajax

I have a form that I need to submit whenever I give a focusout to input of the value. But I'm not getting him to give the submit. Any tips for doing this? Thank you in advance. <?php foreach ($produtos as $produto) {...
asked by 11.06.2014 / 14:57
1
answer

Date is coming in wrong format

In a jquery function, I get a date in my View. It turns out the date is coming like this: /Date(1402369200000)/ I know I need to cast or something, but I do not know how. Can someone give me a help? My controller: [HttpPost] publi...
asked by 16.06.2014 / 16:29
2
answers

What javascript function do I use to extract an HTML block from one place and insert it into another one on the same page

Next I'm working on moodle and 90% of the html is generated via backend, I need to change a <h1 id='courseheader')>Title</h1> of place via javascript since I do not have access to this element, the idea was to remove it...
asked by 10.03.2016 / 14:17
2
answers

Doubts Date with PHP and JS

I do not know anything about JS and would like to know if I have edit a field whose value came from the database using javascript? Because I saved the date of birth and the phone number of a client on the bank, and at the time of registration I...
asked by 03.03.2016 / 06:30
2
answers

Refresh the page while deleting

I have this function to create an alert before deleting and I call it on the button: function ConfirmDelete() { return confirm("Tem certeza de que deseja excluir esta Requisição?"); } <button type="submit" class="btn btn-danger" On...
asked by 19.11.2018 / 16:40
1
answer

If inside the loop does not work correctly

Good evening. I have the following function: function verificaOnOff(){ for(var i in tbModulos){ var mod = tbModulos[i]; $.get('http://'+ mod.ip +'/rele', function(data) { if (data == '1') { $('#icone-'+i).removeC...
asked by 30.06.2018 / 01:17
3
answers

String Jquery or JS

Example: var question1="What is nuclear physics"; var question2="What is nuclear physics" In case I would like to always pick up what is after what is or what it means. Thanks,     
asked by 14.07.2018 / 17:17
1
answer

Add to select and display on screen

I have a select: <select class="form-control" id="dataInstalacao"> <option value="0/0" selected disabled>Quando podemos instalar?</option> <option value="6/9">6/9</option> <option value="7/9">7/9</...
asked by 05.09.2018 / 15:14
2
answers

Background color on calendar-specific days and times

I have this calendar as shown in the image: HeintendedthateveryTuesdayfrom2:30p.m.to5:30p.m.andThursdaysfrom10:30p.m.to12:00p.m.wouldappeartohaveadifferentbackgroundcolorcomparedtotherestofthedays.Thisisthecalendarcode:<script>$(document)...
asked by 10.09.2018 / 11:49
2
answers

Jquery, .val () does not take input text [closed]

I have a following code: INPUT <div class="row"> <div class="form-group"> <div class="col-sm-3">...
asked by 17.10.2016 / 21:40