你好,
你可以为ready事件定义多个函数。也就是你那样写是可以的。
至于你说的合在一起和分开是有区别的,至少我亲身体验的是我是能合在一起就合在一起,需要分开就不得不分开。
不过分开写的时候,最好每个函数彼此之间不要相互依赖。
Xinhao Zheng
SGL中文Blog: http://blog.cjcht.com
SGL中文文档: http://wiki.cjcht.com
SGL中文Group:http://groups.google.com/group/seagull_forum
2008/9/21 立体风 [EMAIL PROTECTED]
不好意
hi all,
is there anyone who knows why clone didn't work when input with
aucomplte plugin used.
is there any walkround solution?
George
peCan wrote:
I have the same question. Can I use jquery.autocomplete on cloned
inputs?
thx.
On 30 Čec, 13:56, rayfidelity [EMAIL PROTECTED] wrote:
hi all,
is there anyone who knows why clone didn't work when use input
with the aucomplete plugin binded.
Is there any walkround solution?
George
peCan wrote:
I have the same question. Can I use jquery.autocomplete on cloned
inputs?
thx.
On 30 Čec, 13:56, rayfidelity [EMAIL
hi ryanstreet,
You can use $.('xxx').serialize() to collect all the input element
into an array,or else you may try json,like
json = '{
a: {\p\:\cc\,\m\:\aa\,\s\:\bb\},
b: 2,
c: 3,
d: 4,
e: 5
}';
$.post(url,
{data:json},
function() { //xxx});
hi all,
is there a way to do this that can work both under ie and FF.thanks
in advance.
George
hi all,
Is there a plugin for multi select?I think we often need a pop
up,multi select plugin,if it can write back the selected thing back to
input field or support tree view.
Anyone can give me some idea if there already exist one?Thanks in
advance!
George
[xyz]').val();
it failed.
--
Xinhao Zheng
SGL中文文档: http://wiki.cjcht.com
SGL中文Group:http://groups.google.com/group/seagull_forum
#How_do_I_select_an_element_that_has_weird_characters_in_its_ID.3F
If you're storing the id attribute in a variable, you could use a regex
.replace() to escape the brackets. For example:
var myId = $('someElement').attr('id').replace(/(\[|\])/g,'$1')
--
Xinhao Zheng
SGL中文文档: http://wiki.cjcht.com
SGL中文
i write a hover event for div,and in the handler use ajax to request
data.but it give me a problem:
it do the same ajax request many times(the number is the times i hover
the div) when the first ajax didn't finished.
xinhaozheng
:'mypage.php',
success : function(info){
// do something with with info
// call return by doing something like
// info.id / info.fname / info.lname
}
});
This should point you in the right direction.
On 7/10/07, Xinhao Zheng [EMAIL PROTECTED] wrote:
hello everyone,
I am just a fresher
hello everyone,
I am just a fresher to jQuery.I like it very much.I need some help.
Is there any way to request a php file to fetch data from db in jQuery
then operate on it use js?Ajax can do it?
which format would be the best way to return the data,json or xml?how to
deal with that in
11 matches
Mail list logo