3 months ago

Dynamic class name: on $(document).on('chang','.className', function(){})

Posted 3 months ago by ncltours

Hi I have 2 different radio check boxes each having different input datas.

I want the className to be dynamic. How Can I have dynamic className

  1. $(document).on( 'change', '.radio-group_return_name input', function(e) {})

  2. $(document).on( 'change', '.radio-group_return_stops input', function(e) {})

I want "name" and "stops" to be dynamic so that I can call same ajax function when searching on either name or stops?

Please sign in or create an account to participate in this conversation.