小jquery问题 [英] small jquery problem
本文介绍了小jquery问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在根据文本框中的值构建一个选择。
喜欢
i am building a select based on the values in a text box .
like
展开 | 选择 | 换行 | 行号
推荐答案
为什么不添加一个检查值的简单if条件?如果它不是空的。请求已经完成。
Why not add a simple if condition which checks the value? If it''s not empty. the request is made.
hmm..yeah我想到了相同的逻辑..但我不能在jquery中写if条件!!我是新手!plzz你能告诉我代码!!只有条件?
hmm..yeah i thought of same logic..but i cld not write the if condition in jquery !! i am new to it !plzz can u show me the code !!only if condition?
为什么不使用常规JavaScript,除了引用一个元素?例如
Why not use regular JavaScript, except perhaps to reference an element? E.g.
展开 | 选择 | Wrap | 行号
这篇关于小jquery问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文