jquery sucess dropdown
Posted
by mckenzie
on Stack Overflow
See other posts from Stack Overflow
or by mckenzie
Published on 2010-05-13T06:36:35Z
Indexed on
2010/05/13
6:44 UTC
Read the original article
Hit count: 226
jQuery
|JavaScript
hi,
//codes
success: function(html){
// this is for input box - working
document.getElementById('val').value='';
$('#val').value='';
// how do i set it for dropdown box to reset after sucess?
document.getElementById('val2').value='';
$('#val2').value='';
}
Once user submit dropdown box, i need it to reset to value="" but now it sticks with user option even after submitted.
Any idea how to achieve that?
© Stack Overflow or respective owner