Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

In the following code, batch ends u

Status
Not open for further replies.

tshad

Programmer
Jul 15, 2004
386
US
In the following code, batch ends up being 201803.

The first alert shows: 201803.

The second alert shows "ddlYearBatch = ". Why doesn't the value for batch show? I also tried it without the toString and got the same result.

Code:
var batch;
batch = $("#<%=ddlYearBatch.ClientID%>").find(":selected").val() + pad($("#<%=ddlMonthBatch.ClientID%>").find(":selected").val(), 2);
alert(batch.toString());
alert("ddlYearBatch = " + batch.toString());

Thanks,

Tom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top