Hello
quick question on grabbing a specific result from a select box

Right Now i have this select:

<select name='Print_Type_ID'
onChange='PrintPrice(this);TotalNum_Origionals();TotalPrintPrice();'
onFocus='if(isDis())blur();'>
 <cfloop query='rs_Print_Type'>
  <option value='<cfoutput>#rs_Print_Type.Print_Type_ID#</cfoutput>'> 
  <cfoutput>
        #NumberFormat(rs_Print_Type.Print_Type_Price, '9999.999')# 
        :: #rs_Print_Type.Print_Type_Width#'/
#rs_Print_Type.Print_Type_Height#' 
        :: #rs_Print_Type.Print_Type_Color#
        </cfoutput></option>
 </cfloop>
</select> 

the JS i have:

function PrintPrice(obj)        // "this" from below gets passed as "obj"
{
var total2 = 0;

if ((obj)) {    //once "this" is passed, calculate totals
amt3 = obj.options[obj.selectedIndex].text;             //grabs the text
label instead of the value
PriPri = amt3;
}

document.all('PrintPri').innerHTML = PriPri;
document.all('PrintPri1').value = PriPri;
}       

grabs:
#NumberFormat(rs_Print_Type.Print_Type_Price, '9999.999')#  ::
#rs_Print_Type.Print_Type_Width#'/ #rs_Print_Type.Print_Type_Height#'  ::
#rs_Print_Type.Print_Type_Color#        

form the select box
i want it only to grab #NumberFormat(rs_Print_Type.Print_Type_Price,
'9999.999')#
the first value.

but want to be able to display the other values.

any ideas?

-paul
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to