you are looking for this:
Code:
<div class="wrapperAttribsOptions">
<h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
<div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>
<br class="clearBoth" />
</div>
it is inside a loop which creates the attribute layout for each attribute.
change to something like:
Code:
<?php
$new_class = str_replace(' ','',$options_name[$i]);
?>
<div id = "attr-<?php echo $new_class;?>" class="wrapperAttribsOptions">
<h4 class="optionName back"><?php echo $options_name[$i]; ?></h4>
<div class="back"><?php echo "\n" . $options_menu[$i]; ?></div>
<br class="clearBoth" />
</div>
you'll see that I have taken the spaces out of the attribute name with str_replace. You may want to 'sanitise the new class name more than that.
Sorry, I am writing this off the top of my head and so there may be typos.
Bookmarks