ישלי שורה שכזאת : <input type='button' style='background-color:silver; width:100px; border:1px ridge orange; text-align:center;' value='מחק' onClick="window.navigate('?action=delete&id=139&site=test.com');" id='sav5' /></td>
|
ועשיתי בJS .. :
function change(div_id) { div_web='web'+div_id; div_name='url'+div_id; div_status='sta'+div_id; div_save='sav'+div_id; this1=document.getElementById(div_web); this2=document.getElementById(div_name); this3=document.getElementById(div_status); this4=document.getElementById(div_save); thi=this4.type; alert(thi); thi='submit'; alert(thi); this4.value='שלח'; this4.onclick=''; this1.readOnly=false; this2.readOnly=false; this3.readOnly=false; this1.style.backgroundColor='white'; this2.style.backgroundColor='white'; this3.style.backgroundColor='white'; this1.style.color='black'; this2.style.color='black'; this3.style.color='black'; } </script>
|
כמו שאתם רואים בALERT הוא מציג לפני ואחרי השינוי.
ואני רואה באמת שאחרי השינוי זה משתנה האלמנט.
אבל הסוג כפתור לא משתנה וכשאני לוחץ פשוט לא קורה שום דבר