Before asking for help please read "How to request help" by clicking on that tab above here.
  • Page:
  • 1

TOPIC:

How to replace Surname input into a select list? 2 weeks 18 hours ago #1

  • mrqd
  • mrqd's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 49
How can I replace the Surname input field with a select list?

I tried this
jQuery("input[name=SURN]").replaceWith('<select name="SURN" class="form-control">' +
          '<option value="Surn1">Surname 1</option>' +
          '<option value="Surn2">Surname 2</option>' +
          '<option value="Surn3">Surname 3</option>' +
        '</select>');

Am I missing something or this doesn't work at all?

Please Log in or Create an account to join the conversation.

How to replace Surname input into a select list? 2 weeks 1 hour ago #2

  • fisharebest
  • fisharebest's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 14108
It will be much easier to modify in the next release.
Greg Roach - This email address is being protected from spambots. You need JavaScript enabled to view it. - fisharebest.webtrees.net

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum