Assign CSS in jquery

Asked

Viewed 66 times

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

  • 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 ?

  • 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

  • Perfect, already gave a light in the syntax , thanks

  • :) nothing, good luck

  • 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 ?

Show 1 more comment
No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.