|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
value of a textbox
am using a calender and the value of date, when i click on the calender, will be in the textbox "txtdate".
when i click "go To" i want to go to the chosen date for viewing the schedule of this day(chosen). the problem how to input the value of the textbox like a parameter for the changedate() function. this is the code: <input type="text" name="txtdate" value="#dateformat(searchdate,'dd/mm/yyyy')#" size="8"> <input type="image" src="calendar\ew_calendar.gif" alt="Pick a Date" onClick="popUpCalendar(this, this.form.searchdate,'dd/mm/yyyy');return false;" name="image"> <input type="submit" value="Go To" onClick="changedate('#here is my problem#')"> i need to put the parameter of the function changedate(the value written in the text "txtdate") i dont know if i explained clearly my problem thank you |
|
#2
|
|||
|
|||
|
This is actually a Javascript question. Someone here may be able to help but you might want to post this instead in the Javascript forum.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian. How to Post a Question in the Forums |
|
#3
|
|||
|
|||
|
this *might* work..
<input type="submit" value="Go To" onClick="changedate(document.formName.txtdate.value)"> |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > value of a textbox |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|