- or download this
my %all_colors = (
1 => 'Red',
...
7 => 'Green',
8 => 'White',
);
- or download this
my $color_selector = '<select name="all_colors">';
...
$color_selector .= '</select>';
<div><% $color_selector %></div>
- or download this
<div>
<input type="checkbox" name="maincolors" value="1" class="inpu
+tCheckbox" /> Main Colors
<input type="checkbox" name="resetofcolors" value="1" class="i
+nputCheckbox" /> Rest of the Colors
</div>
- or download this
use constant MAIN_COLORS => {
1 => 'Red',
...
};
my $main_colors = MAIN_COLORS;
- or download this
<select id="multipeColorSelect" multiple size="8">
<option value="Red" class="maincolor">Red</option>
...
<option value="Black">Black</option>
<option value="Brown">Brown</option>
</select>
- or download this
$('input[name="colorcheckbox"]').click(function () {
...
}
}
});