Hey all, my first post here. I’m primarily a designer but need to get more into the code aspect of things (and will be getting jQuery asap), but at the moment i’m very behind on time on a project and could use some quick help.
Basically, I’m making a dynamically loading text box input area for RMA returns for our products. But thats kind of irrelevant, here’s my question:
I have an external style sheet with only this in it (more will be added later for future sections, thats why im making it it’s own “css-forms.css” file:
.formpad { padding:3px 3px 3px 3px; }
In my main .html, some of my javascript for my dynamic table contains lines like these:
var esnImeiInput = “<INPUT type=\“text\” name=\“esn_imei\” size=\“20\”>”;
var invoiceInput = “<INPUT type=\“text\” name=\“invoice\” size=\“8\”>”;
var datePurchaseInput = “<INPUT type=\“text\” name=\“date_purchase\” size=\“8\”>”;
var noteInput = “<INPUT type=\“text\” name=\“notes\” size=\“18\”>”;
var trOpenTag = “<tr>”;
var trCloseTag = “</tr>”;
var tbOpenTag = “<table>”;
var formRows = modelInput + reasonInput + esnImeiInput + invoiceInput + datePurchaseInput + noteInput + “<br />”;
for(x=0;x<10;x++)
{
formRows += modelInput + reasonInput + esnImeiInput + invoiceInput + datePurchaseInput + noteInput + “<br />”;
}
Where inside those vars (INPUT’s) would i REFER to the ‘class’ of .formpad? Basically I just want to add cellpadding to the table that is being dynamically loaded. If anyone has time to help via IM that’d be cool too, this is pretty easy stuff for true coders.
(the test page for all of this is currently at:
http://planetcellinc.com/rma-rev726.html
Any help appreciated, thanks!
-Hrl2k