开发者

using html and javascript [closed]

开发者 https://www.devze.com 2023-03-01 20:22 出处:网络
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical andcannot be reasonably answered in its current form. For help clari
It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_开发问答 Closed 11 years ago.

when clicking on a option in drop down list another sub field must be opened using html and javascript


$("#drop-down").change(function() {
  if ($("#drop-down").val() == "more") { /* Or whatever value you're testing for */
    $("#space-for-new-drop-down").html($("#space-for-new-drop-down").html() +
      "<input type=\"text\" size=\"5\" id=\"second-drop-down\" />"
    );
  }
});
0

精彩评论

暂无评论...
验证码 换一张
取 消