I was able to do this with jQuery. Not sure if that will work in your situation or not.
[js]
jQuery(document).ready(function($) {
$('<div class="newdiv" style="background:#FF9;color:#000;">span content</div>').appendTo('ul#input_6_22 li');
});
I changed the id to class since the id should be unique and it was repeated in your example.
Where the content (the new div) is appended is highly dependent on your form markup. I used the form 6, field 22 from the code you pasted as an example. If you need to use it on other fields, you would have to adjust the JavaScript.
Find out here where you add this code:
http://www.gravityhelp.com/documentation/page/Where_Do_I_Put_This_Code%3F
If you need additional help please let us know.
Posted 13 years ago on Monday August 22, 2011 |
Permalink