This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 4

Add Country (Angola)


  1. smossner
    Member

    I need to add Angola to the list of countries. Is there a way to add it without having to go back in and edit the array numbers for the other 190+ country values and labels in includes/view-functions.php?

    Also, if I start moving around numbers of the array, will this affect data that is already in the database?

    Posted 9 years ago #
  2. smossner
    Member

    Nevermind. I used...

    jQuery(document).ready(function ($) {
    $('select#element_35_6 :nth-child(13)').after("<option value='Angola'>Angola</option>");
    $('select#element_35_6 :nth-child(196)').after("<option value='Zanzibar'>Zanzibar</option>");
    });

    Posted 9 years ago #

RSS feed for this topic

Reply