Sunday 22 September 2019

php - Change the default Select option using javascript




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:



 shown has no ID




Try



$('select[name="imt_team_href"]').val("-1");

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...