Year: 2014
-
In jQuery for new elements created by the script cannot execute the resolution of the event handler!
Post Views: 10 HTML structure: <td><span id=”is_mar431″><input class=”is_mar” value=”0″ id=”is_mar431_0″ checked=”checked” type=”radio” name=”is_mar431″ /> <label for=”is_mar431_0″>no</label> <input class=”is_mar” value=”1″ id=”is_mar431_1″ type=”radio” name=”is_mar431″ /> <label for=”is_mar431_1″> is </label></span></td> JS structure (front): // Whether it is damaged, select Yes, enter the text box of the damage information $(“span[id^=is_mar]:radio”).change( function() { var this_name = $(this).attr(“name”); var input_id =mar_note_+this_name.substring(6); if…