hey folks, i m working of website and the other guy created dynamic drop down menu, creating function, now if i class them up in css, i have issue with width’s of drop down’s in browsers, in css i can put a exception in the header of the page that if its IE do this but now its dynamic generated. how can i give it exception of how and how. here is the current function
function CreatePriorityddl($name, $priority, $type)
{ $instance = new database();
$connection=$instance->connect();
$result = $instance->query("select * from sitepriority where status=1 order by Priority");
if($type == 1)
print('<select class="txtfield" style="width:11em" name="'.$name.'" id="'.$name.'"><option value="0">Select Priority</option>');
if($type == 2)
print('<select class="txtfield-blue" name="'.$name.'" id="'.$name.'"> <option value=0>Select Priority</option>');
while($values= mysql_fetch_array($result, 1))
{
if($priority == $values['PriorityId'])
{
print('<option value="'.$values['PriorityId'].'" selected="selected" >'.$values['Priority'].'</option>');
}
else
{
print('<option value="'.$values['PriorityId'].'">'.$values['Priority'].'</option>');
}
}
print ("</select>");
$instance->close();
unset($instance);
}