Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Make Post Code required

$
0
0

Replies: 0

The code edit at SpeakOut! FAQ uses left and right single quotes, which breaks the Javascript there.

Correct Javascript edit should be:

if ( postcode === ” ) {
$( ‘#dk-speakout-postcode-‘ + id ).addClass( ‘dk-speakout-error’ );
errors ++;
}

Correct PHP edit should be:

<label for=”dk-speakout-postcode-‘ . $petition->id . ‘” class=”required”‘ . ‘>’ . __( ‘Postal Code’, ‘speakout’ ) . ‘</label>


Viewing all articles
Browse latest Browse all 59525

Trending Articles