View Full Version : How to change the word at part of name of...

05-26-2006, 10:16 AM
how to change the word at "part of the name of FAMILY...." to Family,Genus or species once i choose one of them?

05-26-2006, 11:54 AM
The word where? To choose where? When? can you explain clear your aim?

05-26-2006, 01:37 PM
once i choose d word Genus, Part of FAMILY name should change to Part of Genus Name..
If i choose Species, part of Family Name should change to Part of Species name.

but now, once i choose, it still remain the same.anyone can tell me how to make it change?

05-27-2006, 03:45 AM
can anyone tell me d code for it?
i need it..thanks

05-27-2006, 06:42 AM
If I understand you correctly, this is what you need

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
<script type="text/javascript">
function changeType(frm){
document.getElementById("type").innerHTML = "<em>" + frm.typeSet.options[frm.typeSet.selectedIndex].value + "</em>";

Please enter
<select name="typeSet" onchange="changeType(this.form)">
<option value="Family" selected="selected">Family</option>
<option value="Genus">Genus</option>
<option value="Species">Species</option>
name or part of <span id="type"><em>Family</em></span> name:
<input type="text" size="40" />