In the smarty template, js modifies the form value. if this form value is directly used in the template for if statement judgment? Code: & lt; script & nbsp; language = "javascript" & gt; function & nbsp; handlerTao (tao, yitaocan, huafei) {& nbsp; in the & nbsp smarty template, js modifies the form value. if this form value is directly used in the template for the if statement judgment?
Code:
function handlerTao(tao,yitaocan,huafei){
$("#taocan").val(tao);
$("#taocanid").val(huafei);
}
《script》
Now the form value with id taocanid has been dynamically added to jquery.
Now we want to use this value for the if statement judgment. What should I do? Shared to: function? HandlerTao (tao, yitaocan, huafei ){???????????? $... 'Data-pics = ''>
------ Solution --------------------
I don't know what you want to say. The template is parsed on the server side and js is operated locally. Is there any relationship between the two?
------ Solution --------------------
Where do you want to judge the if statement ??