¡@

Home 

2014/10/16 ¤W¤È 12:03:53

jquery Programming Glossary: id_newdiv

Jquery clone-able inputs foreach overwrites values

http://stackoverflow.com/questions/14374324/jquery-clone-able-inputs-foreach-overwrites-values

Dependant Div and set a new id var clonedDiv jQuery '#dependant 1' .clone false .attr 'id' 'dependant ' g_counter var id_newDiv 'group ' g_counter Find div's inside the cloned object and set a new id's clonedDiv.find '#group 1' .attr 'id' group g_counter.. 'input type text ' .val '' Insert the cloned object clonedDiv.insertAfter #dependant oldId input_groups.push id_newDiv Cloning Function Validation function validate_Id values idNumber values var correct true if idNumber.length 13 isNumber..

duplicate-able inputs validation not working with non duplicate-able fields

http://stackoverflow.com/questions/14400489/duplicate-able-inputs-validation-not-working-with-non-duplicate-able-fields

'id' 'dependant ' g_counter var gender_newDiv 'gender group ' g_counter var age_newDiv 'age group ' g_counter var id_newDiv 'group ' g_counter Find div's inside the cloned object and set a new id's clonedDiv.find '#group 1' .attr 'id' group g_counter.. #dependant oldId age_input_groups.push age_newDiv gender_input_groups.push gender_newDiv input_groups.push id_newDiv Cloning Function Validation function validate_Id values idNumber values var correct true if idNumber.length 13 isNumber.. false .attr 'id' currentdep var gender_newDiv 'gender group ' g_counter var age_newDiv 'age group ' g_counter var id_newDiv 'group ' g_counter Find div's inside the cloned object and set a new id's clonedDiv.find '#group 1' .attr 'id' group g_counter..