Tuesday, 12 September 2017

Fill Input Field with selected option with jquery

Here this you can use jquery on change function, check the example:
$("progadi").on("change", function() {

var val = $(this).val();
// put the val in other field

$("strata").val(val);
});

1 comment:

  1. @param WP_Query $query
    */
    function tribe_force_event_date( $query ) {
    if ( tribe_is_event() ) {
    $taxquery = array(
    array(
    'taxonomy' => 'tribe_events_cat',

    'terms' => array( 55 ),
    'operator' => 'IN'
    )
    );
    $query->set( 'tax_query', $taxquery );
    }
    else
    {
    $taxquery = array(
    array(
    'taxonomy' => 'tribe_events_cat',

    'terms' => array( 55 ),
    'operator' => 'NOT IN'
    )
    );
    $query->set( 'tax_query', $taxquery );
    }

    // return $query;
    }
    add_action( 'tribe_events_pre_get_posts', 'tribe_force_event_date' );

    ReplyDelete

Google Map Filter Api Example

Here is Google Map Filter Api Example: