Posts

Showing posts with the label add nwq html control using jquery

add-remove-input-fields-dynamically-with-jquery

Image
                       If you are looking to add and remove duplicate input fields, here’s jQuery example below to do the task for you. This jQuery snippet adds duplicate input fields dynamically. JQUERY FILE $ ( document ) . ready ( function ( )   {       var   max_fields       =   10 ;   //maximum input boxes allowed       var   wrapper           =   $ ( ".input_fields_wrap" ) ;   //Fields wrapper       var   add_button       =   $ ( ".add_field_button" ) ;   //Add button ID           var   x   =   1 ;   //initlal text box count       $ ( add_button ) . click ( function ( e ) {   //on add input button click       ...