Questions tagged as 'html'

1
answer

How do I know if an element has the html or value property?

I have two elements that need to be updated a DIV and another INPUT One has to be updated value and another the html, example ... $.each(json, function (index, value) { if (typeof $("#" + index).val() !== "undefined") {...
asked by 23.05.2018 / 01:44
2
answers

My function is not running on page load

I'm having the following problem sirs. I have the following function function sortTable() { arr = JSON.parse(localStorage.context_data); $('#tableLemos th').click(function () { console.log("funcao carregada...") var id =...
asked by 15.09.2018 / 05:16
3
answers

How to use the output value

I would like to know how to use the value of an entry after I use the ok! button, since I need to use the value of the input that will serve as the radius, so I can do the calculation that will be printed inside the other two labels...
asked by 23.04.2018 / 21:25
2
answers

HTML view of the field

I have an input field where I bring the value of the bank, which I use this way: <input asp-for="TICMS" name="TICMS" onKeyPress="return(MascaraMoeda(this,'.',',',event))" class="form-control" /> However, the following doubt has arisen...
asked by 12.09.2018 / 13:39
2
answers

Error in modal call with bootstrap 4 and jquery with id="#"

So guys, I created a modal like this: <div class="modal fade" id="#siteModal" tabindex="-1" role="dialog"> <div class="modal-dialog modal-lg" role="document"> <div class="modal-content"> <div cla...
asked by 03.06.2018 / 05:44
2
answers

How to add Divs from a past number of Select?

Could you help me with a problem I'm having? Good people need to create a select with values from 1 to N numbers, after the user select a number in the select has to create n divs from the selected value. Follow the example not working ......
asked by 01.06.2018 / 15:48
1
answer

How to change the value of a custom attribute?

I want to change the value of a custom attr via jquery, but without success. Here is the code below: $("#botao-01").click(function() { $("#img-screen").attr("data-image","img/bauru-02.jpg"); }); <div id="img-screen" class="tile"...
asked by 03.04.2018 / 14:58
1
answer

How do I get a single div with the same class in jquery?

How can I use the click function in jquery with classes of the same name? Type click and appear element only in the clicked div and not in the others. I've already tried using $(this).next('bla').addClass('blablabla') and I was not suc...
asked by 01.04.2018 / 06:36
2
answers

Button to select which carousel to display

I created two illustration carousel and another carousel of a house, and I need two buttons, Illustration and Plant, when loading the page, will show the carousel illustration as main, and when clicking on the plant carousel should hide illustra...
asked by 28.03.2018 / 16:29
2
answers

Generate dynamic borders

I have the following form: <input type="number" min="0" value="0" /> <input type="number" min="0" value="0" /> <input type="number" min="0" value="0" /> <input type="number" min="0" value="0" /> <button>GERAR</...
asked by 26.03.2018 / 05:33