Questions tagged as 'jquery'

1
answer

How to display PHP errors using Ajax and JSON?

You know those error messages that PHP returns when we write some wrong code or, for example, we call some variable that does not exist, or try to include include in a nonexistent file. When we make an Ajax request without using JSON and ask it...
asked by 08.05.2018 / 22:31
1
answer

Change HTML code via jQuery

I'm trying to insert the following code on this page to be able to change the text that appears when the client subscribes to the modal newsletter , which appears when the client is about to leave the page: $(document).ready(function(){...
asked by 09.05.2018 / 21:37
1
answer

Add and remove select with button

I'm developing a form in which I have a select that chooses states and capitals from Brazil, but since whoever fill can add more than one select I need to make a add another select button, as I'll save the selected values, is that in case I am p...
asked by 03.05.2018 / 19:43
1
answer

Get value passed by aria-controls (Bootstrap tab panel)

How can I get the value passed by the aria-controls of the Bootstrap tab panel to compare from a data array to bring only the products of the category in question. Where to start JavaScript ? This value obtained by JavaScript will need...
asked by 04.05.2018 / 20:21
2
answers

Help with Ajax requests to retrieve DB data

I am currently using this Code below to search for the page with the products for the requested tag. echo '<a class="marca" href="prod_index_marca.php?codmarca='.$res['codigo'].'">'.$res['nome_marca'].'</a>'; But I'm trying to c...
asked by 04.05.2018 / 12:20
1
answer

Action with scroll in javascript

My project is to make an animation on a logo using a css effect from the animate.css library, the animation will occur at a certain point in the site scroll. I have been able to do something, but there are two bugs or errors, which are: 1 ° -...
asked by 09.06.2018 / 03:28
1
answer

I'm trying to print the x on the screen but it gives error in the data table

I'm trying to make a table put an x in the location of the file. The code in the table worked, but I want to put it in a jquery datatable but he is not accepting it takes the confg of the plugin or error the table code is this <!DOCTYPE...
asked by 08.06.2018 / 19:37
1
answer

I would like to know how I can do a select with all the Fridays of the year in mysql for example

I'm developing a calendar, and it's going to be used to book meetings. There are sectors, such as the T.I sector, for example, that have a meeting every Friday from 9:30 to 11:30, all year round. I need some way, to insert into my "start date" t...
asked by 09.06.2018 / 17:40
1
answer

Instead of the ajax command staying on the page, it is being directed to php page

$('#formCadastrarProdutos').submit(function() { $.ajax({ url: '../crud/cadastro_produtos.php', type: 'post', data: new FormData(this), cache: false, contentType: false, proce...
asked by 10.06.2018 / 00:34
1
answer

Dynamic form javascript

I have a project in which the form has to be dynamic, for example when filling name and age appears other fields like address and so on, I would like some hint how to do this with javascript / jquery. <div id="main"> <form action=...
asked by 01.05.2018 / 01:40