Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7489233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T15:13:06+00:00 2026-05-29T15:13:06+00:00

how do you covert this html code into the yii CHtml? <form aciton=’site/qrcode’ method=’POST’>

  • 0

how do you covert this html code into the yii CHtml?

<form aciton='site/qrcode' method='POST'>
<input type='text' value='Generate Code here..' name='generate' id='gen' onclick='checkval()' class='ext'>
<input type='submit' value='Generate' id='submit'>
</form>

can anyone please help? My main aim of this is to knkow how to put a class and Onclick event in a textbox or button.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T15:13:06+00:00Added an answer on May 29, 2026 at 3:13 pm

    Use the third parameter of the textField method (htmlOptions array), like this:

    <?php echo CHtml::beginForm(); ?>
    
        <?php echo CHtml::textField('generate','Generate Code here...', array('id'=>'gen', 'onclick'=>'checkval()', 'class'=>'ext')) ?>
    
        <?php echo CHtml::submitButton('Generate', array('id'=>'submit')); ?>
    
    <?php echo CHtml::endForm(); ?>
    

    (I left all the opening and closing tags for other html to be interspersed.)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could someone convert this line of code to be readable by HTML? echo '<h3>'.
I'm looking for a code library that converts ANSI escape sequences into HTML color,
I'm trying to reorganize some controller code into .js.erb jquery files. (Warning, this is
How can I convert RGB values into HTML code? For example, using values like
I'm trying to parse strings that represent source code, something like this: [code lang=html]
I want to convert / transfer HTML Transitional Code into a MS-Word readable-format...pdf would
I'm downloading HTML source code of remote page into String variable. Unfortunetely the page
I am trying to convert this piece of html code to javascript so that
I want to convert following html code into continuous string using jquery/javascript. <ul> <li>one</li>
I have this HTML structure and want to convert it to an accordion. <div

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.