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:
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.
Answer
The selector is wrong, it is looking for an ID but the shown has no ID
Try
$('select[name="imt_team_href"]').val("-1");
No comments:
Post a Comment