Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Javascript 验证我的表单,但想使用 Jquery 显示错误。你能做这个吗?
你可以这样做:
function Validate(){ if(isValidate){ // do somthing }else{ $("#error").fadeIn(500);// here is jQuery code } }