Home > front end >  How to make function is invalid?
How to make function is invalid?

Time:05-03

The function edit_gc (nr_id jtguocheng)
{
if(! Confirm (" sure you want to modify the problem solving process?" )) return false.
$(" # edit_gc "). The HTML (" & lt; Textarea name='jtguocheng' id='jtguocheng' rows='5' & gt;" + jtguocheng + "& lt;/textarea> '/& gt;" );
}
Function edit_gc_load (nr_id)//why the above modify this function has no effect?
{
Alert (' test ');
}

CodePudding user response:

OnClick at the back of the single quotes to double quotes to go, you use the wrong, and don't need to add javascript: onClick inside, so, in your sample directly inserted into the large section of the HTML code, should use the template string

You this extremely not careful, patience, a little careful see clearly ah
  • Related