Jquery Select Convert Into Input Text

[Solved] Jquery Select Convert Into Input Text | Vb - Code Explorer | yomemimo.com
Question : jquery select convert into input text

Answered by : matteo-puppis

$(function()
{ $('select.country_d').change(function() { if ($(this).val() == 'Europe') $('.state_d').replaceWith('<input type="text" name="state_d" id="state_d">'); }); $('select.country_o').change(function(){ if($(this).val() == 'Europe') $('.state_o').replaceWith('<input type="text" name="state_o" id="state_o">'); });
}
);

Source : https://stackoverflow.com/questions/3937018/change-select-to-input-on-selection-of-country/3937069 | Last Update : Wed, 08 Dec 21

Answers related to jquery select convert into input text

Code Explorer Popular Question For Vb