0

I'm trying to put 43 divs with different ID's with emmet. If i do it by hand it's gonna take me forever! Well look at the code

<div class="inlineform cb">
              <input type="checkbox" id="c1" name="cc" />
              <label for="c1"><span></span>Check Box 2</label>
           </div>

I want emmet to change id="c1" and for="c1" to c2, c3, c4 etc up to 43. How can I do that? I didn't find any how to for this specific snippet. Thank you :)

1 Answers1

0

You probably want a different name for each input, so I've changed it to match the id:

.inlineform.cb*43>input[type=checkbox]#c$[name=c$]+label[for=c$]>span+{Check Box $}
Pavlo
  • 43,301
  • 14
  • 77
  • 113
  • Thank you so much! When i'll have free time i'll read much better the documentation! Emmet is life saver –  Nov 02 '13 at 16:04