I am on an editing post page on wordpress and have this option to create a target link:
https://www.vtxfactory.org/images/11111.jpg
The default option is "None", I want it to be the "Custom Link..." one, for that, I have the following info:
<select name="imt_team_href" onchange="imtTeamCustomHref(this.value, '#imt_custom_href_div');">
<option value="-2">None</option>
<option value="-1">Custom Link ...</option>
<option value="2">Sample Page</option>
...
I know I could edit the file and add a "selected" code, but I can't find the file that needs to be edited.
I've tried but without success:
$(function() {
$("#imt_custom_href_div").val("-1");
});
How can I, using javascript or whatever other method, change the predefined value?
Thank you.