Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

jquery select convert into input text

$(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">');
    });
}
);
Comment

PREVIOUS NEXT
Code Example
Javascript :: google sheets simulate edit event 
Javascript :: loadash pick property from object by different name 
Javascript :: merge json files on phoenix render framework 
Javascript :: Angular bind only when mouse moves 
Javascript :: javascript html find the largest number among 2 
Javascript :: how to check length checkbox has been checked 
Javascript :: silk carousel jquery 
Javascript :: url-regex-improvement-to-allow-localhost-url 
Javascript :: Change the content of ALL the p tags 
Javascript :: React Liked Component 
Javascript :: how to prevent random method from giving more than two same numbers js site:stackoverflow.com 
Javascript :: grab params 
Javascript :: redux how does dispatch know which reducer to call 
Javascript :: how to define array in react js 
Javascript :: SharePoint Rest Api in Batch using PnP JS 
Javascript :: Fabricjs configurations 
Javascript :: jquery how do i remove emoji from string 
Javascript :: update instance in sequelize 
Javascript :: online validator json schema 2020-12/schema 
Javascript :: array name in id fields 
Javascript :: replace then replace back 
Javascript :: javascript checkbox in table cell not working 
Javascript :: create immutable array in javascript 
Javascript :: how to generate an array of random numbers in javascript 
Javascript :: compile regex script help online 
Javascript :: graphql get item by id from strapi react 
Javascript :: resource route or crud routs 
Javascript :: replace text with hyperlink 
Javascript :: navigating to another screen from the react native navigation header 
Javascript :: nyaapi node 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =