0
I have the following code, how do I assign a display: block inside jquery ? because I want the fields to appear without having to click on "add", it will appear automatically the quantity, as I determined in if($("tr.linhas").length < 3){
Follow link to view: https://jsfiddle.net/hgoc4p9v/
Give a hint here Caroline: http://answall.com/questions/147413/%C3%89-poss%C3%advel-execute-commands-css-in-javascript-html/147415#147415
– Miguel
I haven’t been able to fit the display block :/ as I’m new, I don’t know if it makes a difference from Jquery to Javascript, you can tell me ?
– Caroline Silveira
If you’re going native javascript:
ele.style.display = 'block';
, if you want to do with jquery$(ele).css('display', 'block');
.ele
is the element to be modified– Miguel
Perfect, already gave a light in the syntax , thanks
– Caroline Silveira
:) nothing, good luck
– Miguel
Guy without wanting to abuse, rsrs, but I could not assign this syntax in the code, could explain me better where I could put this element ?
– Caroline Silveira