last day (15 days later) » 

11:27 PM
0
A: JQuery inside PHP: $_POST with element a onclick issue

chris85I think this should resolve your issue. $rating_boxes='<a href="javascript:void(0);" onclick="document.forms[\'movie_rating_vote_form\'].submit( function () { $(\'#movies_rating_hidden_submit\').html(\'<input type=\"hidden\" name=\"movie_rating_vote\" value=\"4\" />\'); } );" title="Vote with 4...

 
I tried this but it did not work.. See main post section "EDIT 1".
 
Ah, yes I see now the double quote is being used for the attribute value, one sec...
Updated the code to escape the double quotes.
 
That one also did not work.. See main post section "EDIT 2"
 
I'll test in a browser I guess and post back in a minute.
 
From here (see the bold section): <a href="javascript:void(0);" onclick="document.forms[\'movie_rating_vote_form\'].submit( function () { $(\'#movies_rating_hidden_submit\').html(\'<input type=\"hidden\" name=\"movie_rating_vote\" value=\"4\" />\'); } );" title="Vote with 4 points" class="movie_rating_module_number movie_rating_number_4">4</a>
 

  last day (15 days later) »