WordPress.org

Ready to get started?Download WordPress

Forums

Yet another ajax paged comments (YAAPC)
want to add somthing to the plugin (1 post)

  1. roycegracie
    Member
    Posted 3 years ago #

    hi... i want to add a button to the plugin validator.
    when visitors don't fill in the form i want a button to popup (not text like now)
    that will direct the visitor to the relavent field...
    i tried to replace this:
    beforeSubmit: function() {
    if(form.find('#author')[0]) {
    if(form.find('#author').val() == '') {
    msg.html('<div class="notice">'+'fill in the name'+'</div>');

    with this
    beforeSubmit: function() {
    if(form.find('#author')[0]) {
    if(form.find('#author').val() == '') {
    msg.html('<div class="notice">'+'fix the field'+'</div>');

    but when i do this it's jumping" me to the old wordpress validator in the external page.

    how do i do this ?

    thank you

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags