Questions tagged as 'jquery'

3
answers

How would that code be in JQuery in pure JS?

This code snippet is to activate the .nav class but in JS there are some options like: classList.toggle('active-nav') But what about to disable when you click pure JS again? follow script with Jquery! $(document).ready(function(){ $(...
asked by 01.11.2017 / 16:05
3
answers

How to replace in html string only in texts within (between) tags?

I created a search that marks the text that was found. NOTE 1: The search is done in a string that is HTML. OBS 2: I check if there is text within that HTML through indexOf. OBS 3: If I find I give replace in all occurrences of th...
asked by 23.02.2015 / 18:32
2
answers

How to force the '.on (' input ') method via script?

I guess my method: $(document).on("input", "#textbox", function(){ alert("oi"); }); What script can I force to call the alert ("hi")? I tried several and nothing: $("input#textbox").val("1"); $("#textbox").val("1").on("input"); $("...
asked by 03.09.2014 / 19:46
4
answers

Mark checkbox if user type in input text in a table

I need when the user types in an input text, the checkbox of the respective table line should be checked, and if the user leaves the input text again in blank, the checkbox unchecks. Here is the code: <table class="table table-str...
asked by 27.08.2014 / 18:45
3
answers

How to change a link to according to a select?

   I'm creating a price list for my site, and I need to change the payment cycle to the cart when the person changes the payment cycle. > Example: If the person selects the Monthly cycle, the link changes to: <a> If the...
asked by 08.09.2014 / 00:23
1
answer

Datatables slow [closed]

I'm using datatables, but it takes a long time to load with many records. Is it possible to improve this loading of 5,985 records? See my code: <div class="row"> <div class="col-xs-12"> <div class=...
asked by 28.11.2014 / 16:30
2
answers

How to add jQuery data in a table?

How to get jQuery the sum of all the class="subtotal1" fields returned from the database? <?php while($M_P = mysql_fetch_array($Dados_Produtos)) { ?> <tr class="somatoria"> <td><?=utf8_encode($M_P['produ...
asked by 15.10.2014 / 04:40
2
answers

Scrollbar Customization

Today, can we only use CSS to change the scroll bar customization of a DIV? If so, how can I do it? Otherwise what is the best script and how to use it?     
asked by 01.10.2015 / 22:38
2
answers

Clear Input When Choosing Another Option

What I want to do The guy has on the form the option to register individual or legal entity. I want it when it clicks on the person's radio, it clears the input from legal person, and vice versa. What I did I feel like a fool. I made th...
asked by 21.10.2015 / 18:02
3
answers

How to detect if an element is accompanied by some text with jQuery?

I have a certain div.box that will be repeated several times, and some of them have a link ( a.link ) with a specific class. Example: <div class="box" data-id="1"> Primeiro texto </div> <div class="box" data-id=...
asked by 25.09.2015 / 18:50