מה הבעיה ב IF שלי?

מה הבעיה ב IF שלי?

function mytextDIR() { if mytext.document.dir = 'rtl' { mytext.document.dir = 'ltr' } else { mytext.document.dir = 'rtl' } }​
 

selalerer

New member
JavaScript ?

אם כן אז:
function mytextDIR() { if(mytext.document.dir=='rtl') { mytext.document.dir = 'ltr'; } else { mytext.document.dir = 'rtl'; } }​
וזה מבלי לדעת מה זה mytext. אל תשלח אותנו לפתור שאלות על עיוור, תן יותר מידע.
 
למעלה