Change items on <select> tag after a change on input. with javascript (innerhtml) and innerhtml with php -
i have part of page.
the select-box id: `groups` input-type-number id: `yr1` input-type-text id: `yr2` (readonly)
the selectbox(groups)has more options under it. has query depends on field(grpid) prefixes of a.y. example:
20152016aa1 20152016aa2 20152016aa3
yeah quite long kind of id please excuse me (school kind of project, needs academic year primary key purposes). problem here when yr1
changes value, want select box change well. want requery "select * table1 id '%'.$yr1
.$yr2
.'%'"
yeah php code under javascript function(when yr1 changes) go like: document.getelementbyid('groups').innerhtml = 'i want echo out options under query require values of yr
, yr2
sql_query correctness'
so yeah, suppose it's gonna ajax know nothing it. have tried simple tutorial still can't me going. please me people :)
Comments
Post a Comment