[jQuery] Re: How can I code this func fully jQuery compatible

2007-04-10 Thread phplord
There are three items with IDs ('#comment-reply-box', '#comment- item-'+itemId and '#parent_id' ) in document. I need to create a div dynamically, and add #comment-reply-box into this div and then I need to append this new div into '#comment- item-'+itemId Optionally, this new div can be

[jQuery] How can I code this func fully jQuery compatible

2007-04-09 Thread phpLord
Hi; function showReplyBox(itemId,parentId) { var box = document.getElementById('comment-reply-box'); var itemBox = document.getElementById('comment-item-'+itemId); var parent_id = document.getElementById('parent_id'); parent_id.value= parentId

[jQuery] toggle radio sets with a checkbox

2007-04-06 Thread phpLord
Hi; I have been trying to enable/disable 4 group of radio sets by checking and unchecking a checkbox. My function is like below, what's wrong with that, or any suggestions for this? var points=new Array(creativity,composition,aesthetic,technic); for (j in points ) {