![]() |
|
|
|||||||
| PHP - Code PHP programming - Ask questions and help people with PHP code. If you are stuck and need help, this is where you ask for help. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
When I change the value of radiobutton using js, according to the alert messages it changed but visually on the page it still the old value:
I try it in IE8 and Firefox 3.5.7, in firefox I got the 2 alerts,but in IE I got only ONE alert,the first one and then the page refreshs. function Button1JSClick($sender, $params) { ?> alert(document.getElementById("RadioButton1").valu e); document.getElementById("RadioButton1").value="toy ou"; alert(document.getElementById("RadioButton1").valu e); return false; <?php } the second alert is: toyou, but on the page nothing changes... and btw I tried to use 405hp ![]() Last edited by mhmda; 8th February 2010 at 11:05. |
| Sponsored Links |
|
|
|
|||
|
I appreciate your effort for helping...
sometimes my question seems to be a basic thing in web world that I should be familiar with. But this is my first time with web... findObj('RadioButton1_caption').innerHTML="yes!!!! !!!!!!!!!!!!1"; Did the work for changing the caption of radio button. I have another question: in some sites they use js to fill some forms or fields when I did refresh (F5) in the browser the information still there. and in other sites you have to fill again. How can I do that (to maintain the information even in case the user refresh the page)? Last edited by mhmda; 8th February 2010 at 20:34. |