javascript - Style of cursor is not changing -


i have code put wait cursor on images when image clicked.

function disablebutton() {  idstopselbtn.style.cursor='wait';  idstartselbtn.style.cursor='wait';  idbouncerunningbtn.style.cursor='wait';  idstopallbtn.style.cursor='wait';  idstartallbtn.style.cursor='wait';  idbounceselbtn.style.cursor='wait' } 

when function called clicking of button gets designed function take away wait cursor , put default cursor.

function enablebutton(strtype) { idstopselbtn.style.cursor='default'; idstartselbtn.style.cursor='default'; idbouncerunningbtn.style.cursor='default'; idstopallbtn.style.cursor='default'; idstartallbtn.style.cursor='default'; idbounceselbtn.style.cursor='default'; alert('done');   } 

the wait sign still not going after calling function.i added alert check if function firing or not , it's firing, still cursor sign not changing.

try setting auto instead of default:

function enablebutton(strtype) {     idstopselbtn.style.cursor='auto';     idstartselbtn.style.cursor='auto';     idbouncerunningbtn.style.cursor='auto';     idstopallbtn.style.cursor='auto';     idstartallbtn.style.cursor='auto';     idbounceselbtn.style.cursor='auto';     alert('done');   } 

Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -