Created
July 4, 2010 09:52
-
-
Save vijendra/463310 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<ol id="project_credits"> | |
<li class="full credit project_credit first"> | |
<div class="credit-label"> | |
<label for="project_new_project_credit_attributes__label">Label</label> | |
<input class="label text" id="project_new_project_credit_attributes__label" name="project[new_project_credit_attributes][][label]" size="30" type="text"> | |
</div> | |
<div class="credit-url"> | |
<label class="block with-instr" for="project_new_project_credit_attributes__description">Credit <span class="instr">"link text":http://abcd.com/</span></label> | |
<input class="label text" id="project_new_project_credit_attributes__description" name="project[new_project_credit_attributes][][description]" size="30" type="text"> | |
</div> | |
<div class="remove-function"> | |
<a href="#" onclick="remove_element(this, '.project_credit');$('project_credits').childElements().invoke('removeClassName', 'first');$('project_credits').childElements().invoke('removeClassName', 'last');$$('#project_credits li:first-child').invoke('addClassName', 'first');$$('#project_credits li:last-child').invoke('addClassName', 'last');; return false;">Remove</a> | |
</div> | |
</li> | |
<li class="full credit project_credit"> | |
<div class="credit-label"> | |
<label for="project_new_project_credit_attributes__label">Label</label> | |
<input class="label text" id="project_new_project_credit_attributes__label" name="project[new_project_credit_attributes][][label]" size="30" type="text"> | |
</div> | |
<div class="credit-url"> | |
<label class="block with-instr" for="project_new_project_credit_attributes__description">Credit <span class="instr">"link text":http://abcd.com/</span></label> | |
<input class="label text" id="project_new_project_credit_attributes__description" name="project[new_project_credit_attributes][][description]" size="30" type="text"> | |
</div> | |
<div class="remove-function"> | |
<a href="#" onclick="remove_element(this, '.project_credit');$('project_credits').childElements().invoke('removeClassName', 'first');$('project_credits').childElements().invoke('removeClassName', 'last');$$('#project_credits li:first-child').invoke('addClassName', 'first');$$('#project_credits li:last-child').invoke('addClassName', 'last');; return false;">Remove</a> | |
</div> | |
</li> | |
</ol> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment