Questions tagged as 'jquery'

1
answer

Highlight current page link

I'm implementing a menu in the header of my page. As the user clicks the buttons on this menu, the page is rendered just below. I would like to highlight in the menu the button for the current page of the user. I'm calling it this way: <...
asked by 19.06.2015 / 18:32
1
answer

How to pass a Javascript value to a PHP form, and send it as a POST method?

How to pass a Javascript value to a PHP form and send it as a POST method? I have a script: if (cc.isValid()) { $('#debug').text(cc.hash()); var verifica = cc.hash(); // $('#debug').text(verifica); conso...
asked by 29.07.2018 / 21:25
1
answer

The "ON ()" is not acting as expected, why?

Dear friends, I am a student and curious about it, not an experienced programmer, hence my question. Come on, JQUERY's "ON ()" method can be associated with several types of events ("click", "mouseleave", etc.), including more than one at the...
asked by 29.08.2018 / 01:20
1
answer

Run Jquery on multiple inputs

How would I do to run jquery with multiple input fields to be changed? I need to be able to put the quantity of each product by clicking minus and .plus I have this Html <div class="quantity"> <input type="button" value...
asked by 28.08.2018 / 13:29
1
answer

Take to PHP the coteudo of a div

I'm not able to take the contents of a div to PHP with Jquery. What would be the problem for me? My code Html <form role="form" name="form1" id="form1" method="post" action="" enctype="multipart/form-data"> <input type="h...
asked by 23.11.2018 / 15:02
2
answers

Reusing AJAX calls with jQuery

Hello It is very common to see ajax call blocks on the internet that always repeat the same structure extensively, I would like to improve my calls using parameterization patterns and save code from my processes. Current status: $.ajax({...
asked by 13.07.2018 / 19:59
1
answer

Input Text with jQuery

Why can not I type text in the input ".add-edit" that was created with jQuery ? $(function(){ function onTarefaDeleteClick(){ $(this).parent('.tarefa-item').hide('slow', function(){ $(this).remove();...
asked by 12.07.2018 / 16:52
3
answers

HTML and AJAX problem

I have a chat that works with AJAX. Only, depending on some characters that the user types, AJAX does not work, I do not know why, but it does not work. Therefore, I need to remove the HTML from the msg variable, and have this variable pass thro...
asked by 01.07.2018 / 00:56
1
answer

How to replace an index with a String

I'm listing numbers from 1 to 15 and checking if the number is divisible by 3 and 5 by adding a text when true, so far it works, but only that it still displays the number under the text, how do I change the number for the text...
asked by 25.09.2018 / 18:04
2
answers

Send DropDown value to Iframe

How do I send a value from a Drop Down to an [ IFRAME ]? I'm recovering the value like this: function mandaIframe() { pai = parent.document.form1; // especifica o elemento de id="formularioX", dentro do documento que é pai da página....
asked by 03.07.2018 / 16:59