[jQuery] Re: Having a problem with checkboxes
Sorry, that's not working for me: $(document).ready(function(){ $(#paradigm_all).click(function(){ var checked_status=this.checked;$(input[name^='paradigm']).each (function(){ this.checked=checked_status; }); }); }); with input type=checkbox name=paradigm[] value={$value.ver_id} / But I can't see any syntax errors? What did I do wrong? On 31 Jan., 17:41, Beres Botond boton...@gmail.com wrote: Yes you can use : input type=checkbox name=paradigm[] value={$value.ver_id} / Just modify your jquery code as well: var checked_status=this.checked;$(input[name^='paradigm']).each (function(){ this.checked=checked_status; }); http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue On Jan 31, 12:48 am, James james.gp@gmail.com wrote: Which version of Jquery are you using? From version 1.3 on has the @ in selectors deprecated, so the following is not valid anymore: $(inp...@name=paradigm]) Just remove the @. http://docs.jquery.com/Release:jQuery_1.3#Upgrading On Jan 30, 5:27 am,heohniheidi.anselstet...@consultingteam.de wrote: Hi, I am using this: input type=checkbox name=paradigm value={$value.ver_id} / $(document).ready(function(){ $(#paradigm_all).click(function(){ var checked_status=this.checked;$(inp...@name=paradigm]).each (function(){ this.checked=checked_status; }); }); }); to check and uncheck a list of articles. Now I want to sumbit the checked articles, but I don't know how to do that. I can't use input type=checkbox name=paradigm[] value={$value.ver_id} / as then the jquery doesn#t work anymore. But how can I transfer all checked Id's to the next page? Any help? Thanks a bunch!- Zitierten Text ausblenden - - Zitierten Text anzeigen -
[jQuery] Re: Having a problem with checkboxes
Thanks! That's solving a lot!! On 31 Jan., 17:41, Beres Botond boton...@gmail.com wrote: Yes you can use : input type=checkbox name=paradigm[] value={$value.ver_id} / Just modify your jquery code as well: var checked_status=this.checked;$(input[name^='paradigm']).each (function(){ this.checked=checked_status; }); http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue On Jan 31, 12:48 am, James james.gp@gmail.com wrote: Which version of Jquery are you using? From version 1.3 on has the @ in selectors deprecated, so the following is not valid anymore: $(inp...@name=paradigm]) Just remove the @. http://docs.jquery.com/Release:jQuery_1.3#Upgrading On Jan 30, 5:27 am,heohniheidi.anselstet...@consultingteam.de wrote: Hi, I am using this: input type=checkbox name=paradigm value={$value.ver_id} / $(document).ready(function(){ $(#paradigm_all).click(function(){ var checked_status=this.checked;$(inp...@name=paradigm]).each (function(){ this.checked=checked_status; }); }); }); to check and uncheck a list of articles. Now I want to sumbit the checked articles, but I don't know how to do that. I can't use input type=checkbox name=paradigm[] value={$value.ver_id} / as then the jquery doesn#t work anymore. But how can I transfer all checked Id's to the next page? Any help? Thanks a bunch!- Zitierten Text ausblenden - - Zitierten Text anzeigen -
[jQuery] Re: Having a problem with checkboxes
Yes you can use : input type=checkbox name=paradigm[] value={$value.ver_id} / Just modify your jquery code as well: var checked_status=this.checked;$(input[name^='paradigm']).each (function(){ this.checked=checked_status; }); http://docs.jquery.com/Selectors/attributeStartsWith#attributevalue On Jan 31, 12:48 am, James james.gp@gmail.com wrote: Which version of Jquery are you using? From version 1.3 on has the @ in selectors deprecated, so the following is not valid anymore: $(inp...@name=paradigm]) Just remove the @. http://docs.jquery.com/Release:jQuery_1.3#Upgrading On Jan 30, 5:27 am, heohni heidi.anselstet...@consultingteam.de wrote: Hi, I am using this: input type=checkbox name=paradigm value={$value.ver_id} / $(document).ready(function(){ $(#paradigm_all).click(function(){ var checked_status=this.checked;$(inp...@name=paradigm]).each (function(){ this.checked=checked_status; }); }); }); to check and uncheck a list of articles. Now I want to sumbit the checked articles, but I don't know how to do that. I can't use input type=checkbox name=paradigm[] value={$value.ver_id} / as then the jquery doesn#t work anymore. But how can I transfer all checked Id's to the next page? Any help? Thanks a bunch!
[jQuery] Re: Having a problem with checkboxes
Does it work, to write all checked id's into a hidden field? Which then gets submitted? On 30 Jan., 16:27, heohni heidi.anselstet...@consultingteam.de wrote: Hi, I am using this: input type=checkbox name=paradigm value={$value.ver_id} / $(document).ready(function(){ $(#paradigm_all).click(function(){ var checked_status=this.checked;$(inp...@name=paradigm]).each (function(){ this.checked=checked_status; }); }); }); to check and uncheck a list of articles. Now I want to sumbit the checked articles, but I don't know how to do that. I can't use input type=checkbox name=paradigm[] value={$value.ver_id} / as then the jquery doesn#t work anymore. But how can I transfer all checked Id's to the next page? Any help? Thanks a bunch!
[jQuery] Re: Having a problem with checkboxes
Which version of Jquery are you using? From version 1.3 on has the @ in selectors deprecated, so the following is not valid anymore: $(inp...@name=paradigm]) Just remove the @. http://docs.jquery.com/Release:jQuery_1.3#Upgrading On Jan 30, 5:27 am, heohni heidi.anselstet...@consultingteam.de wrote: Hi, I am using this: input type=checkbox name=paradigm value={$value.ver_id} / $(document).ready(function(){ $(#paradigm_all).click(function(){ var checked_status=this.checked;$(inp...@name=paradigm]).each (function(){ this.checked=checked_status; }); }); }); to check and uncheck a list of articles. Now I want to sumbit the checked articles, but I don't know how to do that. I can't use input type=checkbox name=paradigm[] value={$value.ver_id} / as then the jquery doesn#t work anymore. But how can I transfer all checked Id's to the next page? Any help? Thanks a bunch!